PHPackages                             verbb/auth - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. verbb/auth

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

verbb/auth
==========

A Craft CMS module to make working with authentication for third-parties a breeze.

2.0.34(1mo ago)6278.6k—8.2%3[3 issues](https://github.com/verbb/auth/issues)10MITPHPPHP ^8.2

Since Jan 31Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/verbb/auth)[ Packagist](https://packagist.org/packages/verbb/auth)[ GitHub Sponsors](https://github.com/verbb)[ RSS](/packages/verbb-auth/feed)WikiDiscussions craft-5 Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (86)Used By (10)

[![Auth icon](https://camo.githubusercontent.com/9571fd1f8231d66e7d435a0e2666aeecf9e5cf8f09fa57f6e76df23ec4e515fc/68747470733a2f2f6173736574732e76657262622e696f2f706c7567696e732f617574682f617574682d69636f6e2e737667)](https://camo.githubusercontent.com/9571fd1f8231d66e7d435a0e2666aeecf9e5cf8f09fa57f6e76df23ec4e515fc/68747470733a2f2f6173736574732e76657262622e696f2f706c7567696e732f617574682f617574682d69636f6e2e737667)

Auth for Craft CMS
==================

[](#auth-for-craft-cms)

Auth is a module for Craft plugins and modules for making working with authenticating third-party APIs a breeze. We currently support OAuth1/OAuth2 providers and extend the [league/oauth1-client](https://github.com/thephpleague/oauth2-client) and [league/oauth2-client](https://github.com/thephpleague/oauth2-client) packages.

As such, this module is an opinionated wrapper around these packages that lowers boilerplate code, provides a consistent API layer and tightly integrates with Craft itself.

Note

This isn't a Craft plugin that is intended for end-users. Instead, it's something you can install in your own Craft plugins or Craft modules to handle the intricacies of dealing with authentication.

If you're looking for an easy way to use authenticated third-party APIs for your Craft site in Twig templates, check out:

- [Social Login](https://github.com/verbb/social-login)
- [Social Feeds](https://github.com/verbb/social-feeds)
- [Social Poster](https://github.com/verbb/social-poster)
- [Consume](https://github.com/verbb/consume)

Documentation
-------------

[](#documentation)

Visit the [Auth package page](https://verbb.io/packages/auth) for all documentation and developer resources.

Credits
-------

[](#credits)

Thanks to all the individual developers working on `league/oauth2-client` packages.

Sponsor
-------

[](#sponsor)

Auth is licensed under the MIT license, meaning it will always be free and open source – we love free stuff! If you'd like to show your support to the plugin regardless, [Sponsor](https://github.com/sponsors/verbb) development.

[ ![Verbb](https://camo.githubusercontent.com/98f2680f5948987cd8f4b418d67159eb0befb6da92060f286671b05bf39d40bd/68747470733a2f2f76657262622e696f2f6173736574732f696d672f76657262622d70696c6c2e737667)](https://verbb.io)

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance79

Regular maintenance activity

Popularity42

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 98.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~14 days

Total

83

Last Release

55d ago

Major Versions

1.0.40 → 2.0.252025-07-18

1.0.41 → 2.0.272025-10-30

1.0.42 → 2.0.282025-11-12

1.0.43 → 2.0.292026-01-19

1.0.44 → 2.0.332026-02-18

PHP version history (2 changes)1.0.0PHP ^8.0.2

2.0.0-beta.1PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26374352?v=4)[Verbb](/maintainers/verbb)[@verbb](https://github.com/verbb)

---

Top Contributors

[![engram-design](https://avatars.githubusercontent.com/u/1221575?v=4)](https://github.com/engram-design "engram-design (291 commits)")[![simonprev](https://avatars.githubusercontent.com/u/464900?v=4)](https://github.com/simonprev "simonprev (2 commits)")[![bleepsandblops](https://avatars.githubusercontent.com/u/1942313?v=4)](https://github.com/bleepsandblops "bleepsandblops (1 commits)")[![jamesmacwhite](https://avatars.githubusercontent.com/u/8067792?v=4)](https://github.com/jamesmacwhite "jamesmacwhite (1 commits)")[![lucbernard](https://avatars.githubusercontent.com/u/1148262?v=4)](https://github.com/lucbernard "lucbernard (1 commits)")

### Embed Badge

![Health badge](/badges/verbb-auth/health.svg)

```
[![Health](https://phpackages.com/badges/verbb-auth/health.svg)](https://phpackages.com/packages/verbb-auth)
```

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[microsoft/kiota-authentication-phpleague

Authentication provider for Kiota using the PHP League OAuth 2.0 client to authenticate against the Microsoft Identity platform

153.2M7](/packages/microsoft-kiota-authentication-phpleague)

PHPackages © 2026

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