Download the PHP package kwidoo/sms-verification without Composer

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

Latest Version on Packagist Total Downloads GitHub Actions


Laravel SMS Verification

A Laravel package for sending and validating SMS-based verification codes through multiple providers (e.g., Twilio, Vonage, or any custom provider**).

Overview

Table of Contents


Installation

  1. Require via Composer:

  2. Publish Config (Optional):

    This will publish sms-verification.php into your Laravel config directory.

  3. Configure Environment Variables:

    In your .env file, make sure to set the appropriate credentials for your desired providers. For example:


Configuration

The default configuration file sms-verification.php looks like this:


Usage

Basic Usage

If you only want to use one provider (e.g., Twilio) for all verifications:

  1. Set 'default' => 'twilio' in sms-verification.php.
  2. In your code, you can do something like:

Round Robin Usage

If you want to rotate between providers (e.g., Twilio → Vonage → Twilio → Vonage…), you can request the round-robin verifier:

  1. round_robin is an array of strings referencing your verifiers: ['twilio', 'vonage'].
  2. In your code, you might do:

The round-robin verifier will:

Custom Verifiers

You can create your own SMS verifier by:

  1. Creating a class that implements VerifierInterface (or extend the base Verifier class).
  2. Register it in the container or simply reference its FQN in sms-verification.verifiers.

Example:

Then, in sms-verification.php:

And in code:


Console Command

This package includes a console command to generate new custom verifiers from a stub:

If you omit {name}, the command will prompt you to enter the verifier’s class name. It also asks for the client class (namespace) that the verifier should inject.

The newly generated file will be placed in app/Verifiers/{Name}.php. You can customize paths or logic within the command class CreateSmsVerifier.


Example Code

Here’s a quick example to tie it all together:


Credits


License

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


TODO


All versions of sms-verification with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
twilio/sdk Version ^8.3
vonage/client Version ^4.1
telnyx/telnyx-php Version ^3.0
plivo/plivo-php Version ^4.66.5
seven.io/api Version 6.0.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 kwidoo/sms-verification contains the following files

Loading the files please wait ....