Rinvex Authy (https://github.com/rinvex/authy) is a PHP client, that works as a simple wrapper for Authy (https://www.authy.com) TOTP API (https://docs.authy.com/totp.html), the best rated Two-Factor Authentication service for consumers, simplest 2fa Rest API for developers and a strong authentication platform for the enterprise.
Today we at Rinvex (https://rinvex.com) have released this awesome package Rinvex Authy (https://github.com/rinvex/authy) on Github as an #opensource package for the whole #php community to facilitate and ease the integration of the amazing Two-Factor authentication service Authy into PHP applications, which utilizes the latest recommended dependencies such as [Guzzle](https://github.com/guzzle/guzzle), the extensible PHP HTTP client, and of course takes advantage of the [PSR-7: HTTP message interfaces](http://www.php-fig.org/psr/psr-7/). It’s good to note that this package doesn’t require any specific framework to work, so it works fine with any of them.
Feel free to use the package as you wish, please open a new Github issue for any issues you may encounter, raise your voice with suggestions, recommendations or even criticism, we like it 😍 It’s very helpful for us to drive our software being better and more reliable for usage.
One last thing, we’ve plans for adding support for Authy OneTouch API, for the installation and usage please refer to: https://github.com/rinvex/authy Thank you for your time, enjoy 😊
Rinvex Authy PHP Client alternatives and similar libraries
Based on the "Authentication and Authorization" category.
Alternatively, view Rinvex Authy PHP Client alternatives based on common mentions on social networks and blogs.
A spec compliant, secure by default PHP OAuth 2.0 Server
8.7 7.6 L3 Rinvex Authy PHP Client VS HybridAuthOpen source social sign on PHP Library. HybridAuth goal is to act as an abstract api between your application and various social apis and identities providers such as Facebook, Twitter and Google.
8.4 6.5 L5 Rinvex Authy PHP Client VS OAuth 2.0 ClientEasy integration with OAuth 2.0 service providers.
7.1 2.2 L5 Rinvex Authy PHP Client VS SentinelA framework agnostic authentication & authorization system.
:atom: Social (OAuth1\OAuth2\OpenID\OpenIDConnect) sign with PHP :shipit:
Provides a unified interface to local and remote authentication systems.
2.9 0.0 L3 Rinvex Authy PHP Client VS Multi-FactorVendor-Agnostic Two-Factor Authentication
PHP library to verify and validate Apple IdentityToken and authenticate a user with Apple ID.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of Rinvex Authy PHP Client or a related project?
Rinvex Authy is a simple wrapper for Authy TOTP API, the best rated Two-Factor Authentication service for consumers, simplest 2fa Rest API for developers and a strong authentication platform for the enterprise.
Table Of Contents
- Contributing & Protocols
- Security Vulnerabilities
- About Rinvex
Usage is pretty easy and straightforward:
$apiKey = 'AuthySecretKey'; $httpClient = new \GuzzleHttp\Client();
Note: make sure to replace
AuthySecretKeywith your secret key from the installation steps.
Create a new Authy app instance and interact with it:
$authyApp = new \Rinvex\Authy\App($httpClient, $apiKey); $appStats = $authyApp->stats(); // Get app stats $appDetails = $authyApp->details(); // Get app details
Create a new Authy user instance and interact with it:
$authyUser = new \Rinvex\Authy\User($httpClient, $apiKey); $user = $authyUser->register('[email protected]', '317-338-9302', '54'); // Register user $userActivity = $authyUser->registerActivity($user->get('user')['id'], 'cookie_login', 'Test Data'); // Register user activity $userStatus = $authyUser->status($user->get('user')['id']); // Get user status $userDeleted = $authyUser->delete($user->get('user')['id']); // Delete user
Create a new Authy token instance and interact with it:
$authyToken = new \Rinvex\Authy\Token($httpClient, $apiKey); $smsTokenSent = $authyToken->send($user->get('user')['id'], 'sms'); // Send SMS token $callTokenStarted = $authyToken->send($user->get('user')['id'], 'call'); // Start automated call $tokenVerified = $authyToken->verify(54321, $user->get('user')['id']); // Verify token
Work Intuitively with Authy responses:
$body = $tokenVerified->body(); // Get all response body $code = $tokenVerified->statusCode(); // Get response status code $succeed = $tokenVerified->succeed(); // Check whether respose is a success $failed = $tokenVerified->failed(); // Check whether respose is a failure $message = $tokenVerified->message(); // Get response message $item = $tokenVerified->get('item'); // Get response body item $errors = $tokenVerified->errors(); // Get response errors
Note: All authy requests return authy response, with a unified interface for your convenience, so you can interact with all responses the same way as above.
Install the package via composer:
composer require rinvex/authy
Done! You can refer to Usage again.
- Upgrading To
API implementation is 100% backward compatible, but sandbox API has been dropped since it's officially deprecated. Also note that PHP7 is now required.
Refer to the [Changelog](CHANGELOG.md) for a full history of the project.
The following support channels are available at your fingertips:
Contributing & Protocols
Thank you for considering contributing to this project! The contribution guide can be found in [CONTRIBUTING.md](CONTRIBUTING.md).
Bug reports, feature requests, and pull requests are very welcome.
- [Pull Requests](CONTRIBUTING.md#pull-requests)
- [Coding Standards](CONTRIBUTING.md#coding-standards)
- [Feature Requests](CONTRIBUTING.md#feature-requests)
- [Git Flow](CONTRIBUTING.md#git-flow)
Rinvex is a software solutions startup, specialized in integrated enterprise solutions for SMEs established in Alexandria, Egypt since June 2016. We believe that our drive The Value, The Reach, and The Impact is what differentiates us and unleash the endless possibilities of our philosophy through the power of software. We like to call it Innovation At The Speed Of Life. That’s how we do our share of advancing humanity.
This software is released under [The MIT License (MIT)](LICENSE).
(c) 2016-2020 Rinvex LLC, Some rights reserved.
*Note that all licence references and agreements mentioned in the Rinvex Authy PHP Client README section above are relevant to that project's source code only.