PHP Authorization

Open-source PHP projects categorized as Authorization

Missing quite a few other open source projects in this space like SuperTokens (https://supertokens.com) and Keycloak.

Top 16 PHP Authorization Projects

Authorization
  1. OAuth 2.0 Client

    Easy integration with OAuth 2.0 service providers.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. bouncer

    Laravel Eloquent roles and abilities.

  4. laratrust

    Handle roles and permissions in your Laravel application

  5. huge

    Simple user-authentication solution, embedded into a small framework.

  6. Sentinel

    A framework agnostic authentication & authorization system. (by cartalyst)

  7. PHP-Auth

    Authentication for PHP. Simple, lightweight and secure.

  8. OpenID-Connect-PHP

    Minimalist OpenID Connect client

  9. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  10. shield

    Authentication and Authorization for CodeIgniter 4 (by codeigniter4)

  11. laravel-authz

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

  12. aphiria

    A simple, extensible REST API framework for PHP

  13. authorization

    PSR7 Middleware for authorization

  14. AAuth

    Hierarchical Rol-Permission Based Laravel Auth Package with Limitless Hierarchical Level of Organizations

  15. Laravel Permission Manager

    A comprehensive and advanced permission management system for Laravel applications. This package provides a robust role-based access control (RBAC) system with support for wildcard permissions, blade directives, Artisan commands, and a fluent API.

  16. laravel-2fa

    This package allow you to enable simple two-factor authentication in your Laravel applications. It stores tokens locally and notify users about their token via mail, SMS or any custom channel. Includes native conditionnal check to trigger or not 2FA, using known devices, IP addresses or IP locations. (by Hydrat-Agency)

  17. laravel-authorization

    Declarative permission, role and policy-based authorization, inspired by ASP.NET.

  18. authz-php-sdk

    Authz PHP SDK

  19. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

PHP Authorization discussion

PHP Authorization related posts

  • PHP + Cerbos: Revolutionizing Authorization in Laravel applications

    4 projects | /r/PHP | 16 Sep 2023
  • Checking if a user is logged in - which of these approaches is "most correct"?

    1 project | /r/PHPhelp | 10 Jun 2023
  • Best social login library for PHP ("sign in with Apple/Google/Facebook" etc.)?

    1 project | /r/PHPhelp | 21 May 2023
  • Looking for PHP classes that will authenticate against existing OAuth or SAML IdP servers

    3 projects | /r/opensource | 23 Apr 2023
  • Any good PHP authentication library?

    1 project | /r/webdev | 11 Apr 2023
  • log in page encryption.. shouldn't that be done client side?

    2 projects | /r/PHPhelp | 20 Feb 2023
  • I start my journey this year

    1 project | /r/PHP | 1 Feb 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 22 Dec 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Authorization projects in PHP? This list will help you:

# Project Stars
1 OAuth 2.0 Client 3,769
2 bouncer 3,566
3 laratrust 2,280
4 huge 2,194
5 Sentinel 1,528
6 PHP-Auth 1,224
7 OpenID-Connect-PHP 692
8 shield 406
9 laravel-authz 320
10 aphiria 142
11 authorization 74
12 AAuth 41
13 Laravel Permission Manager 41
14 laravel-2fa 16
15 laravel-authorization 6
16 authz-php-sdk 2

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that PHP is
the 14th most popular programming language
based on number of references?