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

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

acacha/users
============

User managment with Laravel and adminlte-laravel

2351[23 issues](https://github.com/acacha/users/issues)PHP

Since Dec 18Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

users
=====

[](#users)

[![Latest Version on Packagist](https://camo.githubusercontent.com/38341a148b6ab4f64431049be56bea7e22cabfcf9623877e8e89e08c58268c07/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6163616368612f75736572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/acacha/users)[![Total Downloads](https://camo.githubusercontent.com/d5cdac93e5b5ff55ef2ebed62781d2a441fd82e0727b178b63c3340746604a26/68747470733a2f2f706f7365722e707567782e6f72672f6163616368612f75736572732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/acacha/users)[![Monthly Downloads](https://camo.githubusercontent.com/b77f6de4000c0585443e791ccbbc756202cef99b1ed55a063536d16808dc5de2/68747470733a2f2f706f7365722e707567782e6f72672f6163616368612f75736572732f642f6d6f6e74686c79)](https://packagist.org/packages/acacha/users)[![Daily Downloads](https://camo.githubusercontent.com/44d86040ab6363a6ae4d85d98632c616935030494b4e9291360f3f71287f818a/68747470733a2f2f706f7365722e707567782e6f72672f6163616368612f75736572732f642f6461696c79)](https://packagist.org/packages/acacha/users)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/37016618eb197ad59c37f4833fca009cc1ec54bfa10ea795791ffb7104716df0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6163616368612f75736572732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/acacha/users)[![Coverage Status](https://camo.githubusercontent.com/211a48f334391123f4f852efc445783b975092f2baa7126c276da02c7bd84f04/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6163616368612f75736572732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/acacha/users/code-structure)[![Quality Score](https://camo.githubusercontent.com/79d6443111fdf9366fb9f6e10148490ac4a9c5526be8c9197cf65cd3df5a3482/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6163616368612f75736572732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/acacha/users)[![Total Downloads](https://camo.githubusercontent.com/2ef7f9517760f928e11c3947486d30d05c6557636863f6d3f404bd1cd5887887/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6163616368612f75736572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/acacha/users)[![StyleCI](https://camo.githubusercontent.com/500245dbf5d472c8baff93758a9c271922c56198e480d3b03acf628423a431c3/68747470733a2f2f7374796c6563692e696f2f7265706f732f33353632383536372f736869656c64)](https://styleci.io/repos/35628567)[![Code Coverage](https://camo.githubusercontent.com/e6ea7c1536bc6dfa56f2cd8c55131738e8ea92a8634efeaee5ff33603de22699/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6163616368612f75736572732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/acacha/users/?branch=master)[![Dependency Status](https://camo.githubusercontent.com/4b2ee3d4102a1f27503147a9bd88ff74a37f3790ea6f9376287130b6bb4b3ca1/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3539333830336332393834343262303033393865623865622f62616467652e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/user/projects/593803c298442b00398eb8eb)[![Dependency Status Node.js](https://camo.githubusercontent.com/0f5561bf4e3c5bfbd84e452715dd567f10967ba9ec09671cccc1e54db6ff5c4b/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3538343833666338386335646165303033396131306361352f62616467652e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/user/projects/58483fc88c5dae0039a10ca5)

Acacha users is a Laravel package that add Users managment support yo your Laravel app.

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

[](#installation)

Via Composer please first create a new fresh Laravel Project:

```
laravel new laravel_with_users
cd laravel_with_users
```

Install adminlte-laravel template with:

```
adminlte-laravel install
```

Then install this Laravel Package using:

```
composer require acacha/users
```

Now install Javascript Vue components using:

```
npm install --save acacha-users

```

Modify your app.js Bundle to use acacha-users Vue components adding:

```
//Acacha Users management components
require('users-bootstrap');

```

Just after Vue installation. Now compile with:

```
npm install
npm run dev

```

Install also Spatie Laravel Permission Package:

```
composer require spatie/laravel-permission
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="migrations"
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="config"
php artisan migrate

```

Configure **App\\User** adding the following traits:

```
class User extends Authenticatable
{
    use Notifiable, HasRoles, HasApiTokens, ExposePermissions, RevisionableTrait,HasUserMigrations;

```

Also install spatie/laravel-menu usign wizard:

```
php artisan adminlte:menu

```

Use llum boot to run migrations and other common firt execution tasks:

```
llum boot

```

Finally assure Laravel Passport () is installed and configured. Composer package is a dependency so no need to install explicitly but be sure to add CreateFreshApiToken midleware to Http/Kernel.php file

```
protected $middlewareGroups = [
        'web' => [
        ...
        \Laravel\Passport\Http\Middleware\CreateFreshApiToken::class,
        ],

```

And change auth configuration to use passport:

```
'guards' => [
        ...
        'api' => [
            'driver' => 'passport',
            'provider' => 'users',
        ],
    ],

```

### Installation on development

[](#installation-on-development)

Via Composer please first create a new fresh Laravel Project:

```
laravel new laravel_with_users
cd laravel_with_users
```

Install adminlte-laravel template with:

```
adminlte-laravel install
```

Install Studio () on your system or use Composer path repositories ()

With Composer Path repositories add in composer.json file just before require section

```
"repositories": [
        {
            "type": "path",
            "url": "./users"
        },
        {
            "type": "path",
            "url": "./users-ebre-escool-migration"
        }
    ],

```

Create folders users and users-ebre-escool-migration with packages (you can clone it):

```
https://github.com/acacha/users
https://github.com/acacha/users-ebre-escool-migration

```

Then install this Laravel Package using:

```
composer require acacha/stateful-eloquent:dev-master
composer require acacha/users:dev-master
composer require scool/ebre_escool_model:dev-master
composer require acacha/users-ebre-escool-migration:dev-master
```

Now is time to configure npm dependencies. Modify file webpack.mix.js adding:

```
  .js .....
  .sourceMaps()
  .webpackConfig({
    resolve: {
      modules: [
        path.resolve(__dirname, './users/resources/assets/js'),
        path.resolve(__dirname, './users-ebre-escool-migration/resources/assets/js'),
        path.resolve(__dirname, 'node_modules')
      ]
    }
  })

```

Compile Javascript bundle with Laravel Mix/webpack:

```
npm install
npm run dev

```

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

[](#requirements)

- Laravel
- Spatie Laravel permission package
- Acacha AdminLTE Laravel template
- Javascript npm packages
    - Vue
    - Axios
    - adminlte-vue
    - vuetable-2
    - password-generator
    - vue-events (TODO migrate to Vuex Store!)
    - vue-scrollto

Vuetable-2 problem with transform-runtime (see also ):

```
npm install --save-dev babel-plugin-transform-runtime babel-preset-stage-2

```

Tests
-----

[](#tests)

Add the suites to phpunit.xml file:

```

    ./users/tests/Feature

    ./users-ebre-escool-migration/tests/Feature

```

And run phpunit.

Usage
-----

[](#usage)

```
$skeleton = new Acacha\Users();
echo $skeleton->echoPhrase('Hello, League!');
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Sergi Tur Badenas](https://github.com/acacha)
- [All Contributors](../../contributors)

TODO Javascript/Npm dependencies
================================

[](#todo-javascriptnpm-dependencies)

- adminlte-vue
- password-generator

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![acacha](https://avatars.githubusercontent.com/u/4015406?v=4)](https://github.com/acacha "acacha (55 commits)")

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

791.3M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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