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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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 main are not installable via Composer until a new version tag (e.g. v1.2.0) is published.


Remove

Uninstall the package:

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

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


All versions of laravel-auth-kit with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
laravel/framework Version ^12.0|^13.0
laravel/sanctum Version ^4.0
laravel/socialite Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package emberrenewed/laravel-auth-kit contains the following files

Loading the files please wait ...