Download the PHP package alexgeno/phone-verification without Composer

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

Phone Verification

Build Status Build Status Build Status Coverage Status

Signing in or signing up on a modern website or mobile app typically follows these steps:

This extensible and configurable library allows to set this up just with a few lines of code

Requirements

Installation

Note: All supported storage clients and sender SDKs are in require-dev section. In a production environment you must manually install only what you use.

Basic Usage

Instantiation

Predis as a storage and Twilio as a sender are used for the demonstration

There are two stages in the verification process

Initiation - a storage and a sender are required for this stage. A user submits a phone and as a result receives an otp

Completion - only a storage is required for this stage. The user submits the otp to verify the phone

That's basically it. More advanced usage including otp length customization, rate limiters, messages customization you can derive from the following sections.

Demo

Initiation

Completion

Note: See DEVELOPMENT.md as an option for how to set up a development environment

Extending

To add a new sender just create a new class

To add a new storage just create a new class

Advanced usage

Rate limit params and otp params might be customized

Initiation

Completion

Note: Of course, you can define all $config options and instantiate all classes at the same place in your code. It is split here just to make it more clear what belongs to the initiation stage and what to the completion stage
Note: Each $config option has a default value. You should redefine only what you need.

MongoDb indexes

If you use MongoDb as a storage you may have noticed that the expiration functionality is based on indexes. They can be created automatically. It's recommended though to use this option only in a non-production environment. It's disabled by default.

Contributing

See CONTRIBUTING.md

Development

See DEVELOPMENT.md as an option for how to set up a development environment

Licence

The code for Phone Verification is distributed under the terms of the MIT license.


All versions of phone-verification with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 alexgeno/phone-verification contains the following files

Loading the files please wait ....