Download the PHP package emberrenewed/laravel-auth-kit without Composer
On this page you can find all versions of the php package emberrenewed/laravel-auth-kit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download emberrenewed/laravel-auth-kit
More information about emberrenewed/laravel-auth-kit
Files in emberrenewed/laravel-auth-kit
Package laravel-auth-kit
Short Description Laravel auth kit: Google, Facebook, and Iraqi phone OTP
License MIT
Informations about the package 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 |
| Require | PHP 8.3+, Laravel 12 or 13 |
| Depends on | laravel/sanctum ^4, laravel/socialite ^5 |
Install
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:
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
Update
Pull the latest release from Packagist:
To lock a major line (recommended):
After updating, re-publish config if you want package defaults refreshed:
Packagist only sees tagged GitHub releases. New commits on
mainare not installable via Composer until a new version tag (e.g.v1.2.0) is published.
Remove
Uninstall the package:
Optional cleanup (manual):
- Delete
config/auth-kit.phpif you published it. - Remove Auth Kit migration files under
database/migrations/(only if unused). - Drop unused env keys:
GOOGLE_*,FACEBOOK_*,IRAQI_SMS_*. - Remove matching blocks from
config/services.php.
Drivers
| Driver | Flavor | Description |
|---|---|---|
google |
api + web | Google OAuth / Socialite |
facebook |
api + web | Facebook OAuth / Socialite |
phone_otp |
api | Iraqi SMS OTP (Asiacell 077/078, Korek 075, Zain 079) |
Toggle drivers in config/auth-kit.php:
API endpoints
| Method | Path | Body |
|---|---|---|
| GET | /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
| Method | Path |
|---|---|
| GET | /auth/google/redirect → /auth/google/callback |
| GET | /auth/facebook/redirect → /auth/facebook/callback |
| POST | /auth/logout |
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
Import postman/AuthKit.postman_collection.json.
Links
- Packagist: https://packagist.org/packages/emberrenewed/laravel-auth-kit
- Source: https://github.com/emberrenewed/auth-package
- Changelog: CHANGELOG.md
All versions of laravel-auth-kit with dependencies
laravel/framework Version ^12.0|^13.0
laravel/sanctum Version ^4.0
laravel/socialite Version ^5.0