Download the PHP package signaturetech/laravel-otp without Composer

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

Laravel

LaravelOtp : generate OTP and Validate OTP


Table of contents

Introduction

LaravelOtp is a Laravel package, designed to generate OTP and Validate OTP using simple steps. This packages will show all OTP history.

Todo

Features

Installation & Configuration

You can install this package via composer using:

Next run the command below to setup api-response.config file, you can set your configuration.

Now add the use SignatureTech\LaravelOtp\Traits\Otpable trait to your model.

Generate OTP

Please use below code to generate otp:

  1. Get User Details

  2. Create Otp Instance

Note: You can use email/mobile/phone number to generate otp Just pass the detail using for method.

Note: You can use more method to setting otp all methods described in methods section.

  1. Attach Otp with user

Verify OTP

You can verify otp by using below code:

  1. Get the use details

  2. Get Otp Instance

  3. Verify Otp

Create OTP without model

You can also create otp without model using the following:

  1. Create OTP

Note: You can use email/mobile/phone number to generate otp Just pass the detail using for method.

Note: You can use more method to setting otp all methods described in methods section.

  1. Verify Otp

Methods

  1. Set length of otp

Note: Default length is 6 digit and you can change the default digit to add the OTP_LENGTH=4 in .env or config/otp.php file

  1. Set Format (Available Format: alpha | alphanumeric | numeric)

Note: Default format is numeric and you can change the default format to add the OTP_FORMAT=4 in .env or config/otp.php file

  1. Set Expiry (In minutes)

Note: Default expiry is 10 minutes and you can change this to add the OTP_EXPIRY=20 in .env or config/otp.php file

License


All versions of laravel-otp with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
laravel/framework Version >= 9.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 signaturetech/laravel-otp contains the following files

Loading the files please wait ....