PHP Authentication and Authorization

Open-source PHP projects categorized as Authentication and Authorization

Top 19 PHP Authentication and Authorization Projects

Authentication and Authorization
  1. Json Web Token

    A simple library to work with JSON Web Token and JSON Web Signature (by lcobucci)

  2. SaaSHub

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

    SaaSHub logo
  3. PHP OAuth 2.0 Server

    A spec compliant, secure by default PHP OAuth 2.0 Server

    Project mention: Laravel + React Authentication the Right Way: Sanctum, JWT, or Passport? A Developer’s Comparison | dev.to | 2025-12-23

    Passport uses the open-standard League OAuth2 server under the hood.Source: https://oauth2.thephpleague.com/

  4. OAuth 2.0 Client

    Easy integration with OAuth 2.0 service providers.

  5. paseto

    Platform-Agnostic Security Tokens

    Project mention: Using JWT to establish a trusted context for Row Level Security | news.ycombinator.com | 2025-09-01

    > At the very least you should propose an alternative that people use besides JWTs

    PASETO: https://paseto.io

    I thought this was common knowledge on HN?

  6. HybridAuth

    Open source social sign on PHP Library. HybridAuth goal is to act as an abstract api between your application and various social apis and identities providers such as Facebook, Twitter and Google.

  7. Opauth

    Multi-provider authentication framework for PHP

  8. Sentinel

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

  9. TwoFactorAuth

    PHP library for Two Factor Authentication (TFA / 2FA) (by RobThree)

  10. PHP oAuthLib

    PHP 5.3+ oAuth 1/2 Client Library

  11. OAuth 1.0 Client

    OAuth 1 Client

  12. Lock

    A flexible, driver based Acl package for PHP 5.4+

  13. SocialConnect Auth

    :atom: Social (OAuth1\OAuth2\OpenID\OpenIDConnect) sign with PHP :shipit: (by SocialConnect)

  14. Multi-Factor

    Vendor-Agnostic Two-Factor Authentication

  15. Aura.Auth

    Provides a unified interface to local and remote authentication systems.

  16. Sign in with Apple for PHP

    PHP library to verify and validate Apple IdentityToken and authenticate a user with Apple ID.

  17. Hawk

    Hawk — A PHP Implementation

  18. TwitterOAuth

    The first PHP Library to support OAuth for Twitter's REST API. (by ruudk)

  19. TwitterSDK

    A simple twitter SDK to interact with Twitter api (1.1)

  20. Rinvex Authy PHP Client

    Rinvex Authy is a simple wrapper for @Authy TOTP API, the best rated Two-Factor Authentication service for consumers, simplest 2fa Rest API for developers and a strong authentication platform for the enterprise. (by rinvex)

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 Authentication and Authorization discussion

Log in or Post with

PHP Authentication and Authorization related posts

  • Laravel + React Authentication the Right Way: Sanctum, JWT, or Passport? A Developer’s Comparison

    1 project | dev.to | 23 Dec 2025
  • Using JWT to establish a trusted context for Row Level Security

    4 projects | news.ycombinator.com | 1 Sep 2025
  • Build Auth Service using Axum and PASETO

    2 projects | dev.to | 31 Jan 2025
  • Demystifying Cookies and Tokens

    1 project | news.ycombinator.com | 24 Jul 2024
  • [NestJS] API DockerHub + IA + PASETO (Local)

    2 projects | dev.to | 23 Jun 2024
  • Ask HN: Helpdesk/ticketing software for small SaaS company

    2 projects | news.ycombinator.com | 14 Sep 2023
  • Best social login library for PHP ("sign in with Apple/Google/Facebook" etc.)?

    5 projects | /r/PHP | 21 May 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 5 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

# Project Stars
1 Json Web Token 7,482
2 PHP OAuth 2.0 Server 6,646
3 OAuth 2.0 Client 3,809
4 paseto 3,389
5 HybridAuth 3,388
6 Opauth 1,637
7 Sentinel 1,524
8 TwoFactorAuth 1,178
9 PHP oAuthLib 1,080
10 OAuth 1.0 Client 998
11 Lock 864
12 SocialConnect Auth 563
13 Multi-Factor 142
14 Aura.Auth 134
15 Sign in with Apple for PHP 91
16 Hawk 67
17 TwitterOAuth 50
18 TwitterSDK 37
19 Rinvex Authy PHP Client 35

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

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