Top PHP Security Libraries 2025

GitHub Libraries PHP Security Libraries

spatie/laravel-permission 12K +29

Added by sizovs added 1 week ago

Associate users with roles and permissions

thephpleague/oauth2-server 6K

Added by sizovs added 1 day ago

league/oauth2-server is a standards compliant implementation of an OAuth 2.0 authorization server written in PHP which makes working with OAuth 2.0 trivial.

phpseclib/phpseclib 5K +1

Added by sizovs added 2 days ago

PHP Secure Communications Library.

defuse/php-encryption 3K +3

Added by sizovs added 2 days ago

Simple Encryption in PHP.

thephpleague/oauth2-client 3K +1

Added by sizovs added 2 days ago

Easy integration with OAuth 2.0 service providers – Google, Facebook, etc.

ambionics/phpggc 3K

Added by sizovs added 1 day ago

PHPGGC is a library of PHP unserialize() payloads along with a tool to generate them, from command line or programmatically.

paragonie/paseto 3K

Added by sizovs added 1 day ago

Paseto is everything you love about JOSE (JWT, JWE, JWS) without any of the many design deficits that plague the JOSE standards.

roave/securityadvisories 2K

Added by sizovs added 1 day ago

This package ensures that your application doesn't have installed dependencies with known security vulnerabilities.

mewebstudio/captcha 2K

Added by sizovs added 1 day ago

Captcha for Laravel.

santigarcor/laratrust 2K

Added by sizovs added 1 day ago

Handle roles and permissions in your Laravel application

php-casbin/php-casbin 1K +1

Added by sizovs added 6 days ago

An authorization library that supports access control models like ACL, RBAC, ABAC in PHP .

spatie/laravel-url-signer 711

Added by sizovs added 2 days ago

Create and validate signed URLs with a limited lifetime

Join libs.tech

...and unlock some superpowers

GitHub

We won't share your data with anyone else.