PHPackages                             oxenti/user - 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. oxenti/user

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

oxenti/user
===========

User plugin for CakePHP

0174PHP

Since Mar 2Pushed 9y ago7 watchersCompare

[ Source](https://github.com/oxenti/User)[ Packagist](https://packagist.org/packages/oxenti/user)[ RSS](/packages/oxenti-user/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

OxenTI User API plugin for CakePHP 3
====================================

[](#oxenti-user-api-plugin-for-cakephp-3)

This plugin contains a package with API methods for managing Users on a CakePHP 3 application. This plugin implements Authentication and Authorization tasks.

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

[](#requirements)

- CakePHP 3.0+

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 oxenti/user
```

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

[](#configuration)

In your app's `config/bootstrap.php` add:

```
// In config/bootstrap.php
Plugin::load('User');
```

or using cake's console:

```
./bin/cake plugin load User
```

In your app's 'config/app.php' add this to your Datasources array:

```
	'oxenti_user' => [
        'className' => 'Cake\Database\Connection',
        'driver' => 'Cake\Database\Driver\Mysql',
        'persistent' => false,
        'host' => 'ỳour_db_host',
        'username' => 'username',
        'password' => 'password',
        'database' => 'databse_name',
        'encoding' => 'utf8',
        'timezone' => 'UTC',
        'cacheMetadata' => true,
        'log' => false,
        'quoteIdentifiers' => false,
    ],
    'test_oxenti_user' => [
        'className' => 'Cake\Database\Connection',
        'driver' => 'Cake\Database\Driver\Mysql',
        'persistent' => false,
        'host' => 'ỳour_db_host',
        'username' => 'username',
        'password' => 'password',
        'database' => 'databse_name',
        'encoding' => 'utf8',
        'timezone' => 'UTC',
        'cacheMetadata' => true,
        'log' => false,
        'quoteIdentifiers' => false,
    ],
```

In your app's 'AppController.php' set up the Auth componet:

```
    ...
    $this->loadComponent('Auth', [
        'authorize' => ['Controller'],
        'authenticate' => [
            'Form' => [
                'userModel' => 'User.Users',
                'fields' => [
                    'username' => 'email',
                    'password' => 'password'
                ]
            ],
            'User.Jwt' => [
                'parameter' => '_token',
                'userModel' => 'User.Users',
                'scope' => ['Users.is_active' => 1],
                'fields' => [
                    'id' => 'id'
                ],
            ]
        ],
        'storage' => 'Memory',
        'unauthorizedRedirect' => false
    ]);
    ...
```

Add the beforeFilter and isAuthorized methods:

```
    public function beforeFilter(Event $event)
    {
        $this->Auth->deny(['*']);
        $this->Auth->allow(['display']);
    }

    public function isAuthorized($user)
    {
        return false;
    }
```

### Configuration files

[](#configuration-files)

Move the 'user.php' config file from the plugin's config folder to your app's config folder.

On your app's 'bootstrap.php' add the user configuration file:

```
    ...
    try {
        Configure::config('default', new PhpConfig());
        Configure::load('app', 'default', false);
    } catch (\Exception $e) {
        die($e->getMessage() . "\n");
    }

    Configure::load('user', 'default');
    ...
```

Using extrenal Associations
---------------------------

[](#using-extrenal-associations)

If you want to associate the Address table with other tables on your application, use the address.php configuration file setting the 'relations' entry to your needs.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor2

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8249708?v=4)[Oxenti Soluções em Tecnologia da Informação](/maintainers/oxenti)[@oxenti](https://github.com/oxenti)

---

Top Contributors

[![adewaleandrade](https://avatars.githubusercontent.com/u/155085?v=4)](https://github.com/adewaleandrade "adewaleandrade (65 commits)")[![GenesioValois](https://avatars.githubusercontent.com/u/406555?v=4)](https://github.com/GenesioValois "GenesioValois (61 commits)")[![leonardobazico](https://avatars.githubusercontent.com/u/5280179?v=4)](https://github.com/leonardobazico "leonardobazico (24 commits)")[![rackiduck](https://avatars.githubusercontent.com/u/12211196?v=4)](https://github.com/rackiduck "rackiduck (6 commits)")

### Embed Badge

![Health badge](/badges/oxenti-user/health.svg)

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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