PHPackages                             colbeh/auth - 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. [Database &amp; ORM](/categories/database)
4. /
5. colbeh/auth

ActiveLaravel-package[Database &amp; ORM](/categories/database)

colbeh/auth
===========

laravel package for Auth system

1.0.12(4y ago)084MITPHP

Since Jun 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sadeghbarout/colbeh-auth)[ Packagist](https://packagist.org/packages/colbeh/auth)[ RSS](/packages/colbeh-auth/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)DependenciesVersions (6)Used By (0)

Installation:
=============

[](#installation)

1- Composer require colbeh/auth

2- Add config file

```
    php artisan vendor:publish --provider="Colbeh\Auth\ServiceProvider" --tag=config

```

3- Go to config/auth\_colbeh and modify that

Upgrade:
========

[](#upgrade)

```
    composer require colbeh/auth:x.x.x

```

Guide
=====

[](#guide)

### Providers:

[](#providers)

you can set multiple provider for different methods of login and signup each provider contains:

```
"providers"=>[
        ...

        "user"=>[
            "model"=>\App\Models\User::class,
            "type"=>"otp", // "otp" or "password"
            "need_validation"=>"1",  // 0 or 1 - determines that send sms or email for COL_PHONE_NUMBER_OR_EMAIL column
        ],

        ...
    ],

```

and call that

```
$auth=new AuthController('user')
```

note : by default provider uses 'user' and not need to determine that

### Validation

[](#validation)

you can validate user by email or phone . 1- Introduce your class of sms sender in auth\_colbeh as SMSSenderClass key note that SMSSenderClass class should extends from SmsSenderInterface interface

2- Introduce your class of email sender in auth\_colbeh as EmailSenderClass key note that EmailSenderClass class should extends from EmailSenderInterface interface

note : this package just send email or sms and doesn't validate both of them

### Usage

[](#usage)

#### Initialize :

[](#initialize-)

```
$auth=new AuthController()
```

#### Login:

[](#login)

login with username and password

```
$auth->login($username, $password)
```

#### SignUp:

[](#signup)

sign up with username and password

```
$auth->signUp($username, $password, $phoneOrEmail)
```

#### Validate:

[](#validate)

send validation email or sms for user

```
$auth->validate($username, $code)
```

#### ResendCode:

[](#resendcode)

resend validation code

```
$auth->resendCode($username)
```

#### ForgetPass:

[](#forgetpass)

this method send an email or sms for recovery password

```
$auth->forgetPass($username)
```

#### RecoveryPass:

[](#recoverypass)

this method used for recovery (change) password after getting code from user user can set his new password

```
$auth->recoveryPass($username,$code,$newPass)
```

if user not set password, system will create new password

```
$newPass=$auth->recoveryPass($username,$code)
```

#### LoginOrSignUp:

[](#loginorsignup)

login or sign up user with phone number or email.In this method, system will send a validation code and you should use validate method to validate user

```
$auth->loginOrSignUp($phonenumberOrEmail)
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Total

5

Last Release

1787d ago

### Community

Maintainers

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

---

Top Contributors

[![sadeghbarout](https://avatars.githubusercontent.com/u/7033941?v=4)](https://github.com/sadeghbarout "sadeghbarout (6 commits)")

---

Tags

laravelmigrationdatabase

### Embed Badge

![Health badge](/badges/colbeh-auth/health.svg)

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

###  Alternatives

[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)[awssat/laravel-sync-migration

Laravel tool helps to sync migrations without refreshing the database

10923.2k](/packages/awssat-laravel-sync-migration)[dragon-code/laravel-data-dumper

Adding data from certain tables when executing the `php artisan schema:dump` console command

3418.6k](/packages/dragon-code-laravel-data-dumper)[codengine/laravel-custom-migrations

Custom Migrations for Laravel

131.3k](/packages/codengine-laravel-custom-migrations)

PHPackages © 2026

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