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.3k17.4k6y ago

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

### spatie/laravel-permission

v8.1.0

89

Permission handling for Laravel 12 and up

102.4M12.9k1.5k3w ago

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

### tymon/jwt-auth

v2.3.0

78

JSON Web Token Authentication for Laravel and Lumen

51.8M11.5k3754mo ago

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

### firebase/php-jwt

v7.1.0

86

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

478.8M9.8k2.8k1mo 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

338.7M7.5k1.1k9mo 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.4.1

88

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.

147.0M6.7k3044w ago

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

### zizaco/entrust

v1.9.1

58

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

84

OAuth 2.0 Client Library

128.7M3.8k1.3k8mo ago

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

### google/recaptcha

v1.5

82

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

94.0M3.6k2612mo ago

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

### hybridauth/hybridauth

v3.13.0

76

PHP Social Authentication Library

9.0M3.4k1113mo ago

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

### bshaffer/oauth2-server-php

v1.14.2

62

OAuth2 Server for PHP

16.1M3.3k1161y ago

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

### friendsofsymfony/user-bundle

v4.1.0

77

Symfony FOSUserBundle

36.2M3.2k3155mo ago

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

### bezhansalleh/filament-shield

v4.2.0

76

Filament support for `spatie/laravel-permission`.

3.9M2.8k1384mo ago

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

### symfony/security-bundle

v8.1.1

86

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

185.6M2.5k2.4k1mo ago

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

### hwi/oauth-bundle

v2.5.0

79

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

22.3M2.4k815mo ago

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

### 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

### lab404/laravel-impersonate

v1.7.8

73

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

18.6M2.3k664mo ago

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

### phpgangsta/googleauthenticator

44

Google Authenticator 2-factor authentication

2.7M2.3k7

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

PHPackages © 2026

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