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

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

touhedul/users
==============

Users package

v6.0(3y ago)033MITPHP

Since Aug 3Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Properos Users
--------------

[](#properos-users)

CRUD package.

**Required properos/properos-base package****Required laravel/socialite package if want to auth with social accounts**Configuration =&gt;

**Added on config/services.php**

```
    'facebook' => [
        'client_id' => env('FACEBOOK_CLIENT_ID', '147107342556627'),
        'client_secret' => env('FACEBOOK_CLIENT_SECRET', 'eda29465e6a4a98b5f89a1c2a3829f14'),
        'redirect' => env('FACEBOOK_CALLBACK','http://properos.com/auth/facebook/callback')
    ],

    'google' => [
        'client_id' => env('GOOGLE_CLIENT_ID', '200207622942-nadc5euejp1fb7jj1m13fdhu30ot4icc.apps.googleusercontent.com'),
        'client_secret' => env('GOGOLE_CLIENT_SECRET', 'uhIvqdMkWVD43Lw9EvvsMfQf'),
        'redirect' => env('GOOGLE_CALLBACK','http://properos.com/auth/google/callback')

    ]
```

**Added on config/app.php**

```
    Laravel\Socialite\SocialiteServiceProvider::class,
```

**Modify config/database.php**

```
    'mysql' => [
        'driver' => 'mysql',
        'host' => env('DB_HOST', '127.0.0.1'),
        'port' => env('DB_PORT', '3306'),
        'database' => env('DB_DATABASE', 'forge'),
        'username' => env('DB_USERNAME', 'forge'),
        'password' => env('DB_PASSWORD', ''),
        'unix_socket' => env('DB_SOCKET', ''),
        'charset' => 'utf8',
        'collation' => 'utf8_general_ci',
        'prefix' => '',
        'strict' => true,
        'engine' => 'Innodb',
    ],
```

**Required spatie/laravel-permission package****IMPORTANT NOTE: If you want to use restrictable\_type and restrictable\_id you have to use "spatie/laravel-permission": "^2.2.0" and add the follow code before install****You need to use restrictable\_type and restrictable\_id with properos-condo package and you have to uncomment the code refers to units (CreateUserComponent.vue and UserController.php -&gt; editUser()**

**Add repositories on composer.json**

```
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/IlCallo/laravel-permission"
        }
    ],
```

**If not you can install spatie with the code below**composer require spatie/laravel-permission

Configuration =&gt;

**Register middleware app/Http/Kernel.php****If use restrictable**

```
    'role' => \Properos\Users\Middleware\RoleMiddleware::class,
```

**If not you have to register:**

```
    'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class,
    'permission' => \Spatie\Permission\Middlewares\PermissionMiddleware::class
```

**Required moment.js**npm install moment

**Add on config/app.php**

```
    'providers' => [
        '...',
        Properos\Users\UsersServiceProvider::class,
        '...'
    ]
```

**Register provider on composer.json**

```
    "autoload": {
    "...": {},
        "psr-4": {
            "App\\": "app/",
            "Properos\\Users\\": "packages/properos/properos-users-advanced/src"
        }
    },
```

**Run**composer dump php artisan vendor:publish Select -&gt; Properos\\Users\\UsersServiceProvider

**Create env.js**

**Add on webpack.mix.js**.js('resources/assets/js/be/modules/users/js/user.js', 'public/be/js/modules/user.js')

**Add on resources/assets/bootstrap.js if not exist**

```
    import Helpers from './misc/helpers'

    window.moment = require('moment')
    window.Vue = require('vue');
    window.Helpers = Helpers;
```

**config/properos\_users.php file**Set the middleware for the routes.

**How to use a Model**\\Properos\\Users\\Models\\Model-Name

**Modify config/auth.php**

```
    'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => \Properos\Users\Models\User::class,
        ],
    ],
```

**Run migrations**php artisan migrate create users table user\_addresses table user\_profiles table modify roles table

**Add seeder on database/seeds/DatabaseSeeder.php**

```
    Set all roles on RolesPermissionsTableSeeder and users on UsersTableSeeder
    $this->call(RolesPermissionsTableSeeder::class);
    $this->call(UsersTableSeeder::class);
```

Run composer dump-autoload php artisan db:seed npm run watch

**Use API authentication**Install laravel/passport package =&gt;

```
```php
    Descomment
    use Laravel\Passport\HasApiTokens;
    use HasApiTokens;
    in \Models\Users.php
```

```

**Add on routes/web.php**

```
    Route::get('/admin/dashboard', function(){
        return view('be.index');
    })->middleware(['auth', 'role:admin']);
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

1383d ago

### Community

Maintainers

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

---

Top Contributors

[![ratul-prolific](https://avatars.githubusercontent.com/u/110459773?v=4)](https://github.com/ratul-prolific "ratul-prolific (2 commits)")

### Embed Badge

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

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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