20 best PHP User Authentication libraries in 2021

by sureshbabu

Enable high quality user authentication, authorization, login, logout and more in your PHP application. Get ratings, code snippets & documentation for each library.

Use the open source, cloud APIs, or public libraries listed below in your application development based on your technology preferences, such as primary language. The below list also provides a view of the components' rating on different dimensions such as community support availability, security vulnerability, and overall quality, helping you make an informed choice for implementation and maintenance of your application. Please review the components carefully, having a no license alert or proprietary license, and use them appropriately in your applications. Please check the component page for the exact license of the component. You can also get information on the component's features, installation steps, top code snippets, and top community discussions on the component details page. The links to package managers are listed for download, where packages are readily available. Otherwise, build from the respective repositories for use in your application. You can also use the source code from the repositories in your applications based on the respective license types.
j

jwt-authby tymondesigns

🔐 JSON Web Token Authentication for Laravel & Lumen

PHP Updated: 3 mo ago License: Permissive

Support
Quality
Security
License
Reuse
h

hybridauthby 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.

PHP Updated: 6 mo ago License: Proprietary

Support
Quality
Security
License
Reuse
p

php-graph-sdkby facebookarchive

The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login. https://developers.facebook.com/docs/php

PHP Updated: 3 mo ago License: Proprietary

Support
Quality
Security
License
Reuse
l

laravel-authby jeremykenedy

Laravel 8 with user authentication, registration with email confirmation, social media authentication, password recovery, and captcha protection. Uses offical [Bootstrap 4](http://getbootstrap.com). This also makes full use of Controllers for the routes, templates for the views, and makes use of middleware for routing. The project can be stood up in minutes.

PHP Updated: 3 mo ago License: Proprietary

Support
Quality
Security
License
Reuse
C

CodeIgniter-Ion-Authby benedmunds

Simple and Lightweight Auth System for CodeIgniter

PHP Updated: 6 mo ago License: Permissive

Support
Quality
Security
License
Reuse
s

sanctumby laravel

Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.

PHP Updated: 1 d ago License: Permissive

Support
Quality
Security
License
Reuse
H

HWIOAuthBundleby hwi

OAuth client integration for Symfony. Supports both OAuth1.0a and OAuth2.

PHP Updated: 5 d ago License: Permissive

Support
Quality
Security
License
Reuse
h

hugeby panique

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

PHP Updated: 6 mo ago License: No License

Support
Quality
Security
License
Reuse
o

opauthby opauth

Multi-provider authentication framework for PHP

PHP Updated: 7 mo ago License: Permissive

Support
Quality
Security
License
Reuse
U

UserFrostingby userfrosting

:doughnut: Modern PHP user login and management framework++.

PHP Updated: 0 d ago License: Proprietary

Support
Quality
Security
License
Reuse
s

security-coreby symfony

Security provides an infrastructure for sophisticated authorization systems, which makes it possible to easily separate the actual authorization logic from so called user providers that hold the users credentials. It is inspired by the Java Spring framework.

PHP Updated: 11 d ago License: Permissive

Support
Quality
Security
License
Reuse
s

sentinelby cartalyst

A framework agnostic authentication & authorization system.

PHP Updated: 6 mo ago License: Permissive

Support
Quality
Security
License
Reuse
g

google2faby antonioribeiro

A One Time Password Authentication package, compatible with Google Authenticator.

PHP Updated: 6 mo ago License: Permissive

Support
Quality
Security
License
Reuse
l

laravel-impersonateby 404labfr

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

PHP Updated: 6 mo ago License: No License

Support
Quality
Security
License
Reuse
c

confideby Zizaco

Confide is a authentication solution for Laravel 4

PHP Updated: 8 mo ago License: No License

Support
Quality
Security
License
Reuse
s

security-guardby symfony

The Guard component brings many layers of authentication together, making it much easier to create complex authentication systems where you have total control.

PHP Updated: 6 mo ago License: Permissive

Support
Quality
Security
License
Reuse
f

fortifyby laravel

Backend controllers and scaffolding for Laravel authentication.

PHP Updated: 8 d ago License: Permissive

Support
Quality
Security
License
Reuse
y

yii2-adminby mdmsoft

Auth manager for Yii2 (RBAC Manager)

PHP Updated: 6 mo ago License: Strong Copyleft

Support
Quality
Security
License
Reuse
g

google-auth-library-phpby googleapis

Google Auth Library for PHP

PHP Updated: 6 mo ago License: Permissive

Support
Quality
Security
License
Reuse
h

haliteby paragonie

High-level cryptography interface powered by libsodium

PHP Updated: 6 mo ago License: Weak Copyleft

Support
Quality
Security
License
Reuse
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items

Find more libraries on