PHPackages                             brammo/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. brammo/auth

ActiveCakephp-plugin[Authentication &amp; Authorization](/categories/authentication)

brammo/auth
===========

Authentication plugin for CakePHP

1.1.0(5mo ago)0121MITPHPPHP &gt;=8.1

Since Nov 17Pushed 5mo agoCompare

[ Source](https://github.com/brammo/auth)[ Packagist](https://packagist.org/packages/brammo/auth)[ Docs](https://github.com/brammo/auth)[ RSS](/packages/brammo-auth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (3)Used By (1)

Brammo/Auth
===========

[](#brammoauth)

A comprehensive authentication plugin for CakePHP 5.x applications, providing user authentication, login/logout functionality, and configurable authentication services.

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![CakePHP](https://camo.githubusercontent.com/d6ae1b48ebd60e93e843caf04d7d05776130f0a03b1feba3743a55ae87635432/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f43616b655048502d352e302d7265642e737667)](https://cakephp.org)[![PHP Version](https://camo.githubusercontent.com/45d36955804bf3f4f17097b05a7f41a28e578dc24e0d3ad0d21ae9d9762f44c6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312b2d626c75652e737667)](https://php.net)

Features
--------

[](#features)

- **Complete Authentication System** - Login/logout functionality out of the box
- **User Status Management** - Built-in support for user status (active, new, blocked) with configurable finders
- **Highly Configurable** - Customize routes, templates, password hashers, and more
- **Secure** - Uses CakePHP's authentication library with bcrypt password hashing
- **Flexible** - Easy to integrate into existing applications

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- CakePHP 5.0 or higher
- CakePHP Authentication 3.0 or higher

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

[](#installation)

Install the plugin using Composer:

```
composer require brammo/auth
```

Load the plugin in your application's `src/Application.php`:

```
public function bootstrap(): void
{
    parent::bootstrap();

    $this->addPlugin('Brammo/Auth');
}
```

Configuration
-------------

[](#configuration)

### Basic Setup

[](#basic-setup)

The plugin comes with sensible defaults, but you can customize it by creating a configuration file at `config/auth.php` in your application:

```
