PHPackages                             emberrenewed/laravel-auth-kit - 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. emberrenewed/laravel-auth-kit

ActiveLibrary

emberrenewed/laravel-auth-kit
=============================

Laravel auth kit: Google, Facebook, and Iraqi phone OTP

v1.2.1(1mo ago)011↓75%MITPHPPHP ^8.3

Since Jul 13Pushed 1mo agoCompare

[ Source](https://github.com/emberrenewed/auth-package)[ Packagist](https://packagist.org/packages/emberrenewed/laravel-auth-kit)[ RSS](/packages/emberrenewed-laravel-auth-kit/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (8)Versions (7)Used By (0)

Laravel Auth Kit
================

[](#laravel-auth-kit)

Clean authentication for Laravel apps: **Google**, **Facebook**, and **Iraqi phone OTP** (Asiacell / Korek / Zain), with Sanctum API tokens and domain events.

**Package**[`emberrenewed/laravel-auth-kit`](https://packagist.org/packages/emberrenewed/laravel-auth-kit)**Require**PHP 8.3+, Laravel 12 or 13**Depends on**`laravel/sanctum` ^4, `laravel/socialite` ^5---

Install
-------

[](#install)

```
composer require emberrenewed/laravel-auth-kit
php artisan auth-kit:install
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
php artisan migrate
```

`auth-kit:install` publishes config + migrations and adds Google, Facebook, and Iraqi SMS keys to `.env`, `.env.example`, and `config/services.php`.

Then fill your credentials:

```
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI="${APP_URL}/auth/google/callback"

FACEBOOK_CLIENT_ID=
FACEBOOK_CLIENT_SECRET=
FACEBOOK_REDIRECT_URI="${APP_URL}/auth/facebook/callback"

IRAQI_SMS_ENDPOINT=
IRAQI_SMS_TOKEN=
IRAQI_SMS_FROM=
```

### User model

[](#user-model)

Your `User` model must use Sanctum’s `HasApiTokens` and support these attributes:

`first_name`, `last_name`, `provider`, `provider_id`, `avatar`, `phone`, `banned_at`

```
use Laravel\Sanctum\HasApiTokens;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use HasApiTokens, Notifiable;
}
```

---

Update
------

[](#update)

Pull the latest release from Packagist:

```
composer update emberrenewed/laravel-auth-kit
```

To lock a major line (recommended):

```
composer require emberrenewed/laravel-auth-kit:^1.2
```

After updating, re-publish config if you want package defaults refreshed:

```
php artisan vendor:publish --tag=auth-kit-config --force
php artisan migrate
```

> Packagist only sees tagged GitHub releases. New commits on `main` are not installable via Composer until a new version tag (e.g. `v1.2.0`) is published.

---

Remove
------

[](#remove)

Uninstall the package:

```
composer remove emberrenewed/laravel-auth-kit
```

Optional cleanup (manual):

1. Delete `config/auth-kit.php` if you published it.
2. Remove Auth Kit migration files under `database/migrations/` (only if unused).
3. Drop unused env keys: `GOOGLE_*`, `FACEBOOK_*`, `IRAQI_SMS_*`.
4. Remove matching blocks from `config/services.php`.

---

Drivers
-------

[](#drivers)

DriverFlavorDescription`google`api + webGoogle OAuth / Socialite`facebook`api + webFacebook OAuth / Socialite`phone_otp`apiIraqi SMS OTP (Asiacell `077`/`078`, Korek `075`, Zain `079`)Toggle drivers in `config/auth-kit.php`:

```
'drivers' => [
    'web' => [
        'google' => true,
        'facebook' => true,
    ],
    'api' => [
        'google' => true,
        'facebook' => true,
        'phone_otp' => true,
    ],
],
```

---

API endpoints
-------------

[](#api-endpoints)

MethodPathBodyGET`/api/auth/providers`—POST`/api/auth/google``access_token`POST`/api/auth/facebook``access_token`POST`/api/auth/otp/phone/send``phone` (Iraqi)POST`/api/auth/otp/phone/verify``phone`, `code`POST`/api/auth/logout`Bearer token### Web

[](#web)

MethodPathGET`/auth/google/redirect` → `/auth/google/callback`GET`/auth/facebook/redirect` → `/auth/facebook/callback`POST`/auth/logout`---

Iraqi phone OTP
---------------

[](#iraqi-phone-otp)

Accepted formats: `07501234567`, `+9647501234567`, `9647501234567`.

Send response includes `carrier` (`asiacell` | `korek` | `zain`).

SMS goes through `services.iraqi_sms.endpoint`. In `local` / `testing`, codes are logged when the endpoint is empty.

Store user `phone` as digits, e.g. `9647501234567`.

---

Postman
-------

[](#postman)

Import [`postman/AuthKit.postman_collection.json`](postman/AuthKit.postman_collection.json).

---

Links
-----

[](#links)

- Packagist:
- Source:
- Changelog: [CHANGELOG.md](CHANGELOG.md)

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance90

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

Total

6

Last Release

46d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/215741707?v=4)[Ahmad](/maintainers/emberrenewed)[@emberrenewed](https://github.com/emberrenewed)

---

Top Contributors

[![emberrenewed](https://avatars.githubusercontent.com/u/215741707?v=4)](https://github.com/emberrenewed "emberrenewed (5 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/emberrenewed-laravel-auth-kit/health.svg)

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

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

28.0k177.2k9](/packages/bagisto-bagisto)[unopim/unopim

UnoPim Laravel PIM

10.8k2.5k](/packages/unopim-unopim)[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

11.3k4.0k](/packages/leantime-leantime)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)

PHPackages © 2026

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