Download the PHP package cofa/laravel-authentication-flow without Composer

On this page you can find all versions of the php package cofa/laravel-authentication-flow. 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-authentication-flow

Laravel Authentication Flow

A simple and flexible authentication package for Laravel applications with JWT support. This package provides a complete authentication flow with login, registration, token refresh, and logout functionality.

Features

Requirements

Installation

1. Install the package via Composer

2. Configuration (Optional)

The package comes with default configuration that will be automatically merged. If you want to customize the settings, publish the configuration file:

This will create a config/apiauth.php file in your application that you can modify.

JWT Configuration

1. JWT Setup

The tymon/jwt-auth package is automatically installed as a dependency. Laravel will handle the provider registration automatically.

2. Generate JWT Secret Key

Generate a secret key for JWT:

This will update your .env file with a JWT_SECRET value.

3. Configure Auth Guard

Update your config/auth.php file to use the JWT guard:

4. Update User Model

Update your User model to implement the JWT interface:

Configuration Options

You can customize the authentication behavior by modifying the config/apiauth.php file:

Usage

The package provides the following API endpoints:

Authentication Routes

All routes are prefixed with /auth:

Example Requests

Login

Response:

Refresh Token

Response:

Security

This package implements several security features:

License

This package is open-sourced software licensed under the MIT license.


All versions of laravel-authentication-flow with dependencies

PHP Build Version
Package Version
Requires tymon/jwt-auth Version ^2.2
php Version ^8.2
illuminate/support Version ^12.22.1
illuminate/routing Version ^12.22.1
propaganistas/laravel-phone Version ^6.0
illuminate/auth Version ^12.22
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 cofa/laravel-authentication-flow contains the following files

Loading the files please wait ...