Download the PHP package arhamlabs/authenticator without Composer

On this page you can find all versions of the php package arhamlabs/authenticator. 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 authenticator

Laravel Authentication Package

This package will provide APIs for user authentication that is registration and login APIs with routes.

Installation

In order to install the package use the command specified below -

Required Packages

While installing package you have enable sodium extension in PHP ini file.

Configuration

Get inside the config/app.php file then add socialite services in providers

The defaults configuration settings are set in the config/al_auth_config.php file. Copy this file to your own config directory to modify the values or you can publish the config using this command:

Finally, you should run your database migrations. This package will create following tables into database:

1.temp_registrations 2.auth_settings 3.temp_otp

Also for mobile otp authentication one more migration is used.Which will add columns into the user table.

Command:

Laravel provide default migration for sanctum name as create_personal_access_tokens_table.Simply edit or create new migration for alter personal_access_tokens table.Add following column name as "expires_at".

$table->timestamp('expires_at')->nullable();

Sanctum Token Ability Middleware Setup:

Sanctum also includes two middleware that may be used to verify that an incoming request is authenticated with a token that has been granted a given ability. To get started, add the following middleware to the $routeMiddleware property of your application's app/Http/Kernel.php file:

Sanctum Token authentication exception handling on route:

To handle default exception on api routes such as AuthenticationException/AccessDeniedHttpException add following code into the register function of your application's app/Exception/Handler.php file:

Update default App\Models\User.php:

API Reference

Registration

User registration

Parameter Type Description
first_name string
last_name string
user_type string
username string
email string Required
password string Required
mobile number
country_code number
user_type string

User Register with Mobile and OTP

Parameter Type Description
first_name string
last_name string
user_type string
username string
email string
password string
mobile number Required
country_code number Required
user_type string

Mobile OTP Verification

Parameter Type Description
otp number Required
mobile string Required
country_code string Required

User Login

User Login using Username and Password

Parameter Type Description
username string Required
password string Required

User Login with Email and OTP

Parameter Type Description
email string Required

Mail OTP Verification

Parameter Type Description
otp number Required
email string Required

User Register/Login with Mobile and OTP with same end point

Parameter Type Description
mobile string Required
country_code string Required

Mobile OTP Verification

Parameter Type Description
otp number Required
mobile string Required
country_code string Required

Forgot Password

Parameter Type Description
email string Required

Logout

Set/Change Password

Parameter Type Description
password string Required
password_confirmation string Required
current_password string Required (for set password)

Social Media Login/Registration

Google

Parameter Type Description
email string Required
idToken string Required
sso_type string Required
aud string Required

Linkedin- For Mobile

Parameter Type Description
email string Required
idToken string Required
sso_type string Required

Linkedin- For Web

Parameter Type Description
email string Required
idToken string Required
sso_type string Required

Apple

Parameter Type Description
email string Required
idToken string Required
sso_type string Required

Package config file

al_auth_config.php


All versions of authenticator with dependencies

PHP Build Version
Package Version
Requires laravel/sanctum Version *
arhamlabs/error-handler Version 2.*
google/apiclient Version 2.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 arhamlabs/authenticator contains the following files

Loading the files please wait ....