PHPackages                             cakephp/authentication - 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. [Framework](/categories/framework)
4. /
5. cakephp/authentication

ActiveCakephp-plugin[Framework](/categories/framework)

cakephp/authentication
======================

Authentication plugin for CakePHP

4.0.1(2mo ago)1153.6M—7%104[1 issues](https://github.com/cakephp/authentication/issues)20MITPHPPHP &gt;=8.1CI passing

Since Dec 27Pushed 1mo ago29 watchersCompare

[ Source](https://github.com/cakephp/authentication)[ Packagist](https://packagist.org/packages/cakephp/authentication)[ Docs](https://cakephp.org)[ RSS](/packages/cakephp-authentication/feed)WikiDiscussions 4.x Synced 1mo ago

READMEChangelog (10)Dependencies (22)Versions (79)Used By (20)

CakePHP Authentication
======================

[](#cakephp-authentication)

[![CI](https://github.com/cakephp/authentication/actions/workflows/ci.yml/badge.svg)](https://github.com/cakephp/authentication/actions/workflows/ci.yml)[![Latest Stable Version](https://camo.githubusercontent.com/cbfcf3eecd778a2ccc89ec422411401db62f73b2142a12a0cff734e6ac29e485/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f63616b657068702f61757468656e7469636174696f6e3f736f72743d73656d766572267374796c653d666c61742d737175617265)](https://packagist.org/packages/cakephp/authentication)[![Total Downloads](https://camo.githubusercontent.com/040aeccfbd46994b05e64052c4efc4900711bf19451e7b3bdccb71fc97013b9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63616b657068702f61757468656e7469636174696f6e3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cakephp/authentication/stats)[![Code Coverage](https://camo.githubusercontent.com/b1a86c93a4ab7dda782e05737ba58eb8a722cbef41698711b70279d65f871db5/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f63616b657068702f61757468656e7469636174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/cakephp/authentication?branch=master)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

[PSR7](https://www.php-fig.org/psr/psr-7/) Middleware authentication stack for the CakePHP framework.

Don't know what middleware is? [Check the CakePHP documentation](https://book.cakephp.org/5/en/controllers/middleware.html) and additionally [read this.](https://philsturgeon.uk/php/2016/05/31/why-care-about-php-middleware/)

Authentication, not Authorization
---------------------------------

[](#authentication-not-authorization)

This plugin intends to provide a framework around authentication and user identification. Authorization is a [separate concern](https://en.wikipedia.org/wiki/Separation_of_concerns) that has been packaged into a separate [authorization plugin](https://github.com/cakephp/authorization).

Installation
------------

[](#installation)

You can install this plugin into your CakePHP application using [composer](https://getcomposer.org):

```
composer require cakephp/authentication

```

Then load the plugin:

```
bin/cake plugin load Authentication

```

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

[](#documentation)

Documentation for this plugin can be found in the [CakePHP Cookbook](https://book.cakephp.org/authentication/4/en/).

IDE compatibility improvements
------------------------------

[](#ide-compatibility-improvements)

There are IdeHelper tasks in [IdeHelperExtra plugin](https://github.com/dereuromark/cakephp-ide-helper-extra/) to provide auto-complete:

- `AuthenticationService::loadAuthenticator()`

###  Health Score

73

—

ExcellentBetter than 100% of packages

Maintenance87

Actively maintained with recent releases

Popularity61

Solid adoption and visibility

Community48

Growing community involvement

Maturity87

Battle-tested with a long release history

 Bus Factor3

3 contributors hold 50%+ of commits

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 ~45 days

Recently: every ~11 days

Total

75

Last Release

64d ago

Major Versions

2.10.2 → 3.0.32023-12-01

1.x-dev → 3.1.02024-07-28

2.11.0 → 3.2.12024-10-18

2.x-dev → 3.3.42025-11-29

3.x-dev → 4.0.02026-02-01

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23666?v=4)[CakePHP](/maintainers/cakephp)[@cakephp](https://github.com/cakephp)

---

Top Contributors

[![markstory](https://avatars.githubusercontent.com/u/24086?v=4)](https://github.com/markstory "markstory (404 commits)")[![ADmad](https://avatars.githubusercontent.com/u/142658?v=4)](https://github.com/ADmad "ADmad (234 commits)")[![burzum](https://avatars.githubusercontent.com/u/162789?v=4)](https://github.com/burzum "burzum (165 commits)")[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (157 commits)")[![robertpustulka](https://avatars.githubusercontent.com/u/7437773?v=4)](https://github.com/robertpustulka "robertpustulka (103 commits)")[![othercorey](https://avatars.githubusercontent.com/u/24221186?v=4)](https://github.com/othercorey "othercorey (80 commits)")[![LordSimal](https://avatars.githubusercontent.com/u/9105243?v=4)](https://github.com/LordSimal "LordSimal (79 commits)")[![zachee54](https://avatars.githubusercontent.com/u/42939319?v=4)](https://github.com/zachee54 "zachee54 (36 commits)")[![saeideng](https://avatars.githubusercontent.com/u/8215801?v=4)](https://github.com/saeideng "saeideng (22 commits)")[![ajibarra](https://avatars.githubusercontent.com/u/794722?v=4)](https://github.com/ajibarra "ajibarra (20 commits)")[![inoas](https://avatars.githubusercontent.com/u/20972207?v=4)](https://github.com/inoas "inoas (19 commits)")[![enviniom](https://avatars.githubusercontent.com/u/17869758?v=4)](https://github.com/enviniom "enviniom (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (13 commits)")[![ndm2](https://avatars.githubusercontent.com/u/5031606?v=4)](https://github.com/ndm2 "ndm2 (12 commits)")[![Zuluru](https://avatars.githubusercontent.com/u/514172?v=4)](https://github.com/Zuluru "Zuluru (11 commits)")[![rochamarcelo](https://avatars.githubusercontent.com/u/850748?v=4)](https://github.com/rochamarcelo "rochamarcelo (11 commits)")[![Arhell](https://avatars.githubusercontent.com/u/26163841?v=4)](https://github.com/Arhell "Arhell (10 commits)")[![GrandFelix](https://avatars.githubusercontent.com/u/5418644?v=4)](https://github.com/GrandFelix "GrandFelix (10 commits)")[![RiteshParyali](https://avatars.githubusercontent.com/u/55147176?v=4)](https://github.com/RiteshParyali "RiteshParyali (8 commits)")[![stickler-ci](https://avatars.githubusercontent.com/u/16011037?v=4)](https://github.com/stickler-ci "stickler-ci (8 commits)")

---

Tags

authenticationcakephpcakephp-pluginmiddlewarephppsr7-middlewaremiddlewareauthAuthenticationcakephp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cakephp-authentication/health.svg)

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[cakephp/authorization

Authorization abstraction layer plugin for CakePHP

742.2M34](/packages/cakephp-authorization)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[slim/csrf

Slim Framework 4 CSRF protection PSR-15 middleware

3512.1M94](/packages/slim-csrf)[yiisoft/yii-middleware

Yii Middleware

21151.3k1](/packages/yiisoft-yii-middleware)[yiisoft/auth

Yii auth

37170.6k4](/packages/yiisoft-auth)

PHPackages © 2026

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