Download the PHP package innonazarene/sanctum-auth-kit without Composer

On this page you can find all versions of the php package innonazarene/sanctum-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 sanctum-auth-kit

Sanctum Auth Kit

One-command Laravel Sanctum auth boilerplate. Installs a full token-based AuthController (register, login, logout, me, change password, forgot/reset password, email verification), wires up the routes, and installs Scramble so your API docs are live at /docs/api — all from a single artisan command.

Requirements

Installation

That single install command will:

  1. Publish Laravel Sanctum's config and migration.
  2. Add the HasApiTokens trait to App\Models\User (only if it's not already there).
  3. Publish App\Http\Controllers\Api\AuthController.
  4. Publish the auth form requests to App\Http\Requests\Auth:
    • LoginRequest
    • RegisterRequest
    • ChangePasswordRequest
    • ForgotPasswordRequest
    • ResetPasswordRequest
  5. Publish routes/auth.php and require it from routes/api.php.
  6. Publish Scramble's config so /docs/api serves generated OpenAPI docs for the new endpoints.

Run php artisan migrate afterwards to create the personal_access_tokens table.

Pass --force to overwrite files that already exist:

Generated endpoints

Routes are published to routes/auth.php and required from routes/api.php, so Laravel's default api route-group prefix applies — every endpoint below is served under /api.

Method URI Auth required Description
POST /api/auth/register Register + issue a token
POST /api/auth/login Login + issue a token
POST /api/auth/forgot-password Send a password reset link
POST /api/auth/reset-password Reset password via token
GET /api/auth/verify-email/{id}/{hash} signed Verify email address
POST /api/auth/logout Revoke the current token
GET /api/auth/me Get the authenticated user
POST /api/auth/change-password Change password
POST /api/auth/email/verification-notification Resend verification email

If routes/api.php doesn't exist yet (a plain Laravel 11+ skeleton doesn't ship one), the installer creates it and registers it in bootstrap/app.php automatically.

All published files are plain Laravel code — edit them freely after installation, this package does not hook into them afterwards.

License

MIT


All versions of sanctum-auth-kit with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^10.0|^11.0|^12.0|^13.0
laravel/sanctum Version ^3.3|^4.0
dedoc/scramble Version ^0.11|^0.12|^0.13
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 innonazarene/sanctum-auth-kit contains the following files

Loading the files please wait ...