Download the PHP package tech-ed/simpl-otp without Composer

On this page you can find all versions of the php package tech-ed/simpl-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 simpl-otp

SimplOtp

SimplOtp is a Laravel package that simplifies the generation and validation of one-time passwords (OTPs) in your Laravel applications.

This package is inspired by ichtrojan/laravel-otp but modified to be a little bit more flexible.

Installation

You can install the SimplOtp package via Composer:

After installing the package, run the migration command to create the necessary database table:

The package will automatically register its service provider and facade.

Configuration

To customize SimplOtp's behavior, you can publish its configuration file using the following artisan command:

This command will copy the configuration file config/simplotp.php to your application's config directory, where you can modify it according to your needs.

Configuration Options

Usage

Generating an OTP

You can generate an OTP using the SimplOtp::generate() method. It requires an identifier associated with the OTP.

Validating an OTP

To validate an OTP, use the SimplOtp::validate() method, passing the identifier and the OTP token.

Customization

You can customize success and error messages by editing the config/simplotp.php configuration file. Additionally, you can adjust OTP settings to suit your application's requirements.

Generate Email Notification

To create a basic email template inside the Notifications folder, run the following artisan command:

This command allows you to customize the email notification template according to your specific requirements.

Email Notification Example

To send an OTP via email, you can use Laravel's built-in notification system along with the provided EmailOtpVerification notification class.

This example generates an OTP for the authenticated user's email address and sends it via email using the EmailOtpVerification notification class.

Support the Developer

If SimplOtp has been helpful to you and you'd like to support its development, consider buying the developer a cup of coffee! ☕

Your support is greatly appreciated and helps in maintaining and improving SimplOtp for the Laravel community.

License

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


All versions of simpl-otp with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^11.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 tech-ed/simpl-otp contains the following files

Loading the files please wait ....