Download the PHP package authy/php without Composer

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

Packagist version Build Status

🚨🚨🚨

This library is no longer actively maintained. The Authy API has been replaced with the Twilio Verify API. Twilio will support the Authy API through November 1, 2022 for SMS/Voice. After this date, we’ll start to deprecate the service for SMS/Voice. Any requests sent to the API after May 1, 2023, will automatically receive an error. Push and TOTP will continue to be supported through July 2023.

Learn more about migrating from Authy to Verify.

Please visit the Twilio Docs for:

Please direct any questions to Twilio Support. Thank you!

🚨🚨🚨

PHP Client for Twilio Authy Two-Factor Authentication (2FA) API

Documentation for PHP usage of the Authy API lives in the official Twilio documentation.

The Authy API supports multiple channels of 2FA:

If you only need SMS and Voice support for one-time passwords, we recommend using the Twilio Verify API instead. More on how to choose between Authy and Verify here.

Authy Quickstart

For a full tutorial, check out the PHP/Laravel Authy Quickstarts in our docs:

Authy PHP Installation

This library requires PHP 5.6+

Install with composer. The authy/php package is available on Packagist.

Include in your composer.json as follows:

{
    "require": {
        "authy/php": "3.0.5"
    }
}

Usage

To use the Authy client, import AuthyApiClient and initialize it with your production API Key found in the Twilio Console:

authy api key in console

2FA Workflow

  1. Create a user
  2. Send a one-time password
  3. Verify a one-time password

OR

  1. Create a user
  2. Send a push authentication
  3. Check a push authentication status

Phone Verification

Phone verification now lives in the Twilio API and has PHP support through the official Twilio helper libraries.

Verify V2.

Contributing

You can use docker to run tests and develop locally without the need to install the dependencies directly in your machine:

To contribute, make your changes in a branch and send a Pull Request to the twilio/authy-php repo.

Copyright

Copyright (c) 2011-2020 Authy Inc. See LICENSE for further details.


All versions of php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2.5||^8.0
guzzlehttp/guzzle Version ~6.0||~7.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 authy/php contains the following files

Loading the files please wait ....