PHPackages                             josegonzalez/cakephp-users - 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. josegonzalez/cakephp-users

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

josegonzalez/cakephp-users
==========================

Users plugin for CakePHP

0.1.2(6y ago)1761MITPHPPHP &gt;=5.6

Since Nov 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/josegonzalez/cakephp-users)[ Packagist](https://packagist.org/packages/josegonzalez/cakephp-users)[ Docs](https://github.com/josegonzalez/cakephp-users)[ RSS](/packages/josegonzalez-cakephp-users/feed)WikiDiscussions master Synced 4d ago

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

Users plugin for CakePHP
========================

[](#users-plugin-for-cakephp)

Provides user authentication and administration for your CRUD-enabled application.

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

[](#installation)

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

The recommended way to install composer packages is:

```
composer require josegonzalez/cakephp-users

```

Usage
-----

[](#usage)

Load the plugin

```
Plugin::load('Users', ['bootstrap' => true, 'routes' => true]);
```

Create the `users` table with a migration similar to the following:

```
bin/cake bake migration create_users verified:boolean active:boolean email:string:unique:U_email password avatar avatar_dir created modified
```

If enabling password resets, you will also need to load the `Muffin/Tokenize` plugin and run it's migrations:

```
bin/cake plugin load Muffin/Tokenize --routes

bin/cake migrations migrate --plugin Muffin/Tokenize
```

If enablign social authenticationn, you will also need to load the `ADmad/SocialAuth` pluginn and run it's migrations:

```
bin/cake plugin load ADmad/SocialAuth -b -r

bin/cake migrations migrate -p ADmad/SocialAuth
```

And add the `AuthTrait` to your `AppController`:

```
namespace App\Controller;

use Cake\Controller\Controller;
use Users\Controller\AuthTrait;

class AppController extends Controller
{
    use AuthTrait;
    public function initialize()
    {
        $this->loadAuthComponent();
    }
}
```

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

[](#configuration)

```
return [
    'Users' => [
        // Name of the table to use
        'userModel' => 'Users.Users',

        // Enable users the ability to upload avatars
        'enableAvatarUploads' => true,

        // Enable the password-reset flow
        'enablePasswordReset' => true,

        // Require that a user's email be authenticated
        'requireEmailAuthentication' => true,

        // Make all users active immediately
        'setActiveOnCreation' => true,

        // Fields to use for authentication
        'fields' => [
            'username' => 'email',
            'password' => 'password',
        ],

        // SocialAuth plugin configuration
        'social' => [
            'getUserCallback' => 'getUserFromSocialProfile',
            'serviceConfig' => [
                'provider' => [
                    'facebook' => [
                        'applicationId' => '',
                        'applicationSecret' => '',
                        'scope' => [
                            'email'
                        ]
                    ],
                ],
            ],
        ],
    ],
];
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

2358d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f38b500117ee9754ea7a4c56b800c8151ca0605b1715a3b2ff054aae504f7393?d=identicon)[josegonzalez](/maintainers/josegonzalez)

---

Top Contributors

[![josegonzalez](https://avatars.githubusercontent.com/u/65675?v=4)](https://github.com/josegonzalez "josegonzalez (20 commits)")

---

Tags

authcakephpUsers

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[cakedc/users

Users Plugin for CakePHP

524897.0k16](/packages/cakedc-users)[cakedc/auth

Auth objects for CakePHP

31630.0k2](/packages/cakedc-auth)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

129228.6k10](/packages/dereuromark-cakephp-tinyauth)[webtechnick/cakephp-facebook-plugin

CakePHP Facebook Plugin

43712.3k](/packages/webtechnick-cakephp-facebook-plugin)[andrej-griniuk/cakephp-two-factor-auth

CakePHP auth component and provider fot two-factor authentication

38102.9k](/packages/andrej-griniuk-cakephp-two-factor-auth)[xety/cake3-cookieauth

A simple Cake3 plugin to authenticate users with Cookies.

1954.7k2](/packages/xety-cake3-cookieauth)

PHPackages © 2026

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