Download the PHP package mahdialikhani/otp-authenticator without Composer

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

OTP Authenticator

GitHub release (latest SemVer) Packagist Downloads

The OTP Authenticator package provides a simple and efficient solution for ensuring the security of your users' accounts. With the OTP (One-Time Password) method, users can securely log in to their accounts without the fear of their credentials being compromised. The package is easy to install and integrates seamlessly with your Laravel application, making it a hassle-free experience for developers.


Installation

Requirements

You can install the package via composer:

and add the OTPAuthenticatorServiceProvider service provider to config/app.php

and then run:

Our default support includes two text message service provider, Ghasedak and Kavenegar, with plans to expand our support to additional services. To use any of these services, simply follow the instructions provided.

Kavenegar:

To utilize the Kavenegar service, first follow the installation instructions for the Kavenegar package as outlined in the service provider's official documentation. Then, specify the SMS sender number in the config/otpauthenticator.php file.

and then:

You can edit the toSms function in the \App\Notifications\VerificationNotification class as follows:

and done!

Ghasedak:

To utilize the ghasedak service, first follow the installation instructions for the ghasedak package provided in the official service provider's documentation. If you opt to use a pre-made text message template from the Ghasedak service, indicate the name of your selected template in the config/otpauthenticator.php file.

and then:

You can edit the toSms function in the \App\Notifications\VerificationNotification class as follows:

and done!

You can use the Laravel documentation to use the vonage service or create a personalized service by following these steps:

To conveniently access the recipient and message text, extend your message class from the "SimpleMessage" class.

for example:

Also, if you don't want the verification code to be sent to the user via text message, you can apply the email settings in your .env file and make the following changes in the file \App\Notifications\VerificationNotification to send the validation code via email.


Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of otp-authenticator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.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 mahdialikhani/otp-authenticator contains the following files

Loading the files please wait ....