2017 © Pedro Peláez
 

library php

PHP client for Authy

image

authy/php

PHP client for Authy

  • Saturday, May 5, 2018
  • by davidcuadrado
  • Repository
  • 21 Watchers
  • 191 Stars
  • 209,164 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 69 Forks
  • 11 Open issues
  • 13 Versions
  • 11 % Grown

The README.md

Packagist version Build Status, (*1)

🚨🚨🚨, (*2)

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., (*3)

Learn more about migrating from Authy to Verify., (*4)

Please visit the Twilio Docs for: * Verify + PHP (Laravel) quickstart * Twilio PHP helper library * Verify API reference, (*5)

Please direct any questions to Twilio Support. Thank you!, (*6)

🚨🚨🚨, (*7)

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

Documentation for PHP usage of the Authy API lives in the official Twilio documentation., (*8)

The Authy API supports multiple channels of 2FA: * One-time passwords via SMS and voice. * Soft token (TOTP via the Authy App) * Push authentication via the Authy App, (*9)

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., (*10)

Authy Quickstart

For a full tutorial, check out the PHP/Laravel Authy Quickstarts in our docs: * PHP/Laravel Authy Quickstart, (*11)

Authy PHP Installation

This library requires PHP 5.6+, (*12)

Install with composer. The authy/php package is available on Packagist., (*13)

Include in your composer.json as follows:, (*14)

{
    "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:, (*15)

$authy_api = new Authy\AuthyApi('#your_api_key');

authy api key in console, (*16)

2FA Workflow

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

OR, (*17)

  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., (*18)

Legacy (V1) documentation here. Verify V1 is not recommended for new development. Please consider using Verify V2., (*19)

Contributing

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

git clone git@github.com:authy/authy-php.git
cd authy-php
make docker-build # Creates the docker image
make docker-deps  # Install dependencies (in the `vendor` directory)
make docker-test  # Runs the tests

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

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

The Versions

05/05 2018

dev-master

9999999-dev https://github.com/authy/authy-php

PHP client for Authy

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Cuadrado

api authentication two-factor

13/03 2018

dev-user-mgmt

dev-user-mgmt https://github.com/authy/authy-php

PHP client for Authy

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Cuadrado

api authentication two-factor

01/03 2018

dev-codelength

dev-codelength https://github.com/authy/authy-php

PHP client for Authy

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Cuadrado

api authentication two-factor

02/01 2018

v3.0

3.0.0.0 https://github.com/authy/authy-php

PHP client for Authy

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Cuadrado

api authentication two-factor

01/01 2018

dev-next-release

dev-next-release https://github.com/authy/authy-php

PHP client for Authy

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Cuadrado

api authentication two-factor

18/12 2017

dev-tests-fix

dev-tests-fix https://github.com/authy/authy-php

PHP client for Authy

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Cuadrado

api authentication two-factor

20/10 2016

v2.5

2.5.0.0 https://github.com/authy/authy-php

PHP client for Authy

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Cuadrado

api authentication two-factor

20/11 2015

v2.4

2.4.0.0 https://github.com/authy/authy-php

PHP client for Authy

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Cuadrado

api authentication two-factor

20/10 2015

dev-phone-verification-locale

dev-phone-verification-locale https://github.com/authy/authy-php

PHP client for Authy

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Cuadrado

api authentication two-factor

24/02 2015

v2.3

2.3.0.0 https://github.com/authy/authy-php

PHP client for Authy

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Cuadrado

api authentication two-factor

15/08 2014

v2.2

2.2.0.0 https://github.com/authy/authy-php

PHP client for Authy

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Cuadrado

api authentication two-factor

14/08 2014

v2.1

2.1.0.0 https://github.com/authy/authy-php

PHP client for Authy

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Cuadrado

api authentication two-factor

14/08 2014

v2.0

2.0.0.0 https://github.com/authy/authy-php

PHP client for Authy

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Cuadrado

api authentication two-factor