PHPackages                                          Best PHP Packages for Authentication &amp; Authorization | PHPackages - PHPackages [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Categories](/categories)
4. /
5. Authentication &amp; Authorization

Best PHP Packages for Authentication &amp; Authorization
========================================================

Discover the top authentication &amp; authorization packages for your PHP projects.

Most StarsMost DownloadedMost Depended UponRecently Updated

### ory/hydra-sdk

v1.1.1

62

ORY Hydra SDK

47.1k17.2k6y ago

[Authentication &amp; Authorization](/categories/authentication)Apache-2.0PHP &gt;=5.4

### spatie/laravel-permission

v8.0.0

90

Permission handling for Laravel 12 and up

98.0M12.9k1.3k1w ago

[Authentication &amp; Authorization](/categories/authentication)MITPHP ^8.3

### tymon/jwt-auth

v2.3.0

80

JSON Web Token Authentication for Laravel and Lumen

50.9M11.5k3643mo ago

[Authentication &amp; Authorization](/categories/authentication)MITPHP ^8.0

### firebase/php-jwt

v7.0.5

85

A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.

467.3M9.8k2.5k2mo ago

[Authentication &amp; Authorization](/categories/authentication)BSD-3-ClausePHP ^8.0

### lcobucci/jwt

v5.6.0

85

A simple library to work with JSON Web Token and JSON Web Signature

330.9M7.5k1.0k7mo ago

[Authentication &amp; Authorization](/categories/authentication)BSD-3-ClausePHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

### league/oauth2-server

v9.3.0

86

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

143.0M6.6k2696mo ago

[Authentication &amp; Authorization](/categories/authentication)MITPHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

### zizaco/entrust

v1.9.1

59

This package provides a flexible way to add Role-based Permissions to Laravel. Supports laravel 5|6|7|8

5.3M6.1k638y ago

[Authentication &amp; Authorization](/categories/authentication)MITPHP &gt;=5.5.0

### league/oauth2-client

v2.9.0

85

OAuth 2.0 Client Library

125.2M3.8k1.3k6mo ago

[Authentication &amp; Authorization](/categories/authentication)MITPHP ^7.1 || &gt;=8.0.0 &lt;8.6.0

### google/recaptcha

v1.5

84

Client library for reCAPTCHA, a free service that protects websites from spam and abuse.

92.4M3.6k2481mo ago

[Authentication &amp; Authorization](/categories/authentication)BSD-3-ClausePHP &gt;=8.4

### hybridauth/hybridauth

v3.13.0

78

PHP Social Authentication Library

8.8M3.4k1032mo ago

[Authentication &amp; Authorization](/categories/authentication)MITPHP ^5.4 || ^7.0 || ^8.0

### bshaffer/oauth2-server-php

v1.14.2

63

OAuth2 Server for PHP

15.8M3.3k1121y ago

[Authentication &amp; Authorization](/categories/authentication)MITPHP &gt;=7.2

### friendsofsymfony/user-bundle

v4.1.0

79

Symfony FOSUserBundle

35.9M3.2k3153mo ago

[Authentication &amp; Authorization](/categories/authentication)MITPHP ^8.2

### bezhansalleh/filament-shield

v4.2.0

75

Filament support for `spatie/laravel-permission`.

3.5M2.8k1152mo ago

[Authentication &amp; Authorization](/categories/authentication)MITPHP ^8.2|^8.3

### symfony/security-bundle

v8.1.0

86

Provides a tight integration of the Security component into the Symfony full-stack framework

181.3M2.5k2.2k1w ago

[Authentication &amp; Authorization](/categories/authentication)MITPHP &gt;=8.4.1

### lucadegasperi/oauth2-server-laravel

v5.2.1

 Abandoned

An OAuth 2.0 bridge for Laravel and Lumen

2.2M2.4k369y ago

[Authentication &amp; Authorization](/categories/authentication)MITPHP &gt;=5.5.9

### hwi/oauth-bundle

v2.5.0

81

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

22.0M2.4k753mo ago

[Authentication &amp; Authorization](/categories/authentication)MITPHP ^8.3

### phpgangsta/googleauthenticator

44

Google Authenticator 2-factor authentication

2.7M2.3k7

[Authentication &amp; Authorization](/categories/authentication)

### lab404/laravel-impersonate

v1.7.8

74

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

17.8M2.3k582mo ago

[Authentication &amp; Authorization](/categories/authentication)MITPHP ^7.2 | ^8.0

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
