PHPackages                             originphp/user\_authentication - 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. originphp/user\_authentication

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

originphp/user\_authentication
==============================

User Authentication Plugin for OriginPHP

3.4.2(4y ago)136[3 issues](https://github.com/originphp/user_authentication/issues)MITPHPCI failing

Since Oct 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/originphp/user_authentication)[ Packagist](https://packagist.org/packages/originphp/user_authentication)[ RSS](/packages/originphp-user-authentication/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (4)Versions (18)Used By (0)

User Authentication Plugin
==========================

[](#user-authentication-plugin)

The User Authentication plugin, provides user registration, sending a welcome emails, changing passwords, verifying user email addresses using email notifications. This plugin takes less than 2 minutes to add to your application and provides you with everything you need to get started.

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

[](#installation)

Install the the `UserAuthentication` plugin

```
$ composer require originphp/user_authentication

```

Setup
-----

[](#setup)

Load the `AuthComponent` in the `AppController` initialize method.

```
class AppController extends Controller
{
    protected function initialize() : void
    {
        $this->loadComponent('Auth', [
            'loginAction' => '/login',
            'loginRedirect' => '/profile', # Set this to something valid
            'logoutRedirect' => '/login',
            'model' => 'UserAuthentication.User'
        ]);
    }
}
```

Load database schema for the User (you can change this later)

```
$ bin/console db:schema:load UserAuthentication.schema

```

Load the Queue schema, which use for sending reset password and email verification notices.

```
$ bin/console db:schema:load queue

```

Set the `App.name` value in your `config/application.php`

```
Config::write('App.name','Web Application');
```

Usage
-----

[](#usage)

To signup

To login

> This will take you to the `loginRedirect` setting you setup in your AppController

To start the password reset process

[http://localhost:8000/forgot\_password](http://localhost:8000/forgot_password)

To view or edit your user profile

To view the API token

> If you are not going to be using API tokens then you can remove the route from `config/routes.php`

Creating App Source
-------------------

[](#creating-app-source)

To install the source into your app, and rename the namespaces, type in

```
$ bin/console user-authentication:install

```

Copy and paste the routes from `plugins/user_authentication/config/routes.php` to the `config/routes.php`

Copy the database schema from `plugins/user_authentication/database/schema.php` either into your existing schema file `database/schema.php` or into a new file.

Uninstall the Plugin

```
$ composer remove originphp/user_authentication

```

What Next
---------

[](#what-next)

Now its all working fine, it is time to copy the schema for the User Authentication plugin and the queues into your `application/schema.php`.

Testing The Plugin
------------------

[](#testing-the-plugin)

The controller integration test requires your `AppController` loads the `AuthComponent`, but other tests will run fine without this.

Load the schema for the `UserAuthentication` plugin and queues into the test database

```
$ bin/console db:schema:load --connection=test UserAuthentication.schema
$ bin/console db:schema:load --connection=test queue

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~40 days

Total

17

Last Release

1755d ago

Major Versions

1.1.2 → 2.x-dev2020-07-07

2.x-dev → 3.0.02020-07-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e8a821333d9c7b7bc2ad3d164d142f65cd3912dea78033d31f76b0f19ba8a0c?d=identicon)[originphp](/maintainers/originphp)

---

Top Contributors

[![jamielsharief](https://avatars.githubusercontent.com/u/20553479?v=4)](https://github.com/jamielsharief "jamielsharief (60 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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)
