All Projects → rinvex → laravel-authy

rinvex / laravel-authy

Licence: MIT License
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.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-authy

Authy
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.
Stars: ✭ 34 (-2.86%)
Mutual labels:  twilio, phone, sms, two-factor-authentication
Vonage Node Sdk
Vonage API client for Node.js. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
Stars: ✭ 323 (+822.86%)
Mutual labels:  phone, sms, two-factor-authentication
Vonage Php Sdk Core
Vonage REST API client for PHP. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
Stars: ✭ 849 (+2325.71%)
Mutual labels:  phone, sms, two-factor-authentication
Vonage Dotnet Sdk
Nexmo REST API client for .NET, ASP.NET, ASP.NET MVC written in C#. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
Stars: ✭ 76 (+117.14%)
Mutual labels:  phone, sms, two-factor-authentication
microblog-authy
Microblog application from the Flask Mega-Tutorial with added two-factor push authentication via Authy
Stars: ✭ 26 (-25.71%)
Mutual labels:  twilio, two-factor-authentication, authy
React Native Phone Verification
The best React Native example for phone verification (an alternative to Twitter Digits).
Stars: ✭ 332 (+848.57%)
Mutual labels:  twilio, sms, two-factor-authentication
PokerTexter
SMS App for Poker Odds. Runs on Flask + Twilio + Heroku.
Stars: ✭ 17 (-51.43%)
Mutual labels:  twilio, phone, sms
Vonage Java Sdk
Vonage Server SDK for Java. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
Stars: ✭ 75 (+114.29%)
Mutual labels:  phone, sms, two-factor-authentication
Vonage Ruby Sdk
Vonage REST API client for Ruby. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
Stars: ✭ 203 (+480%)
Mutual labels:  phone, sms, two-factor-authentication
Vonage Python Sdk
Vonage Server SDK for Python. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
Stars: ✭ 134 (+282.86%)
Mutual labels:  phone, sms, two-factor-authentication
Twilio Java
A Java library for communicating with the Twilio REST API and generating TwiML.
Stars: ✭ 371 (+960%)
Mutual labels:  twilio, phone, sms
Twilio Csharp
Twilio C#/.NET Helper Library for .NET Framework 3.5+ and supported .NET Core versions
Stars: ✭ 541 (+1445.71%)
Mutual labels:  twilio, phone, sms
keycloak-phone-provider
A Keycloak provider which phone and SMS
Stars: ✭ 83 (+137.14%)
Mutual labels:  phone, sms
apache 2fa
Apache two-factor (2FA) authentication with Google Authenticator based on Time-based One-Time Password (TOTP) or HMAC-based one-time password (HOTP) Algorithms.
Stars: ✭ 63 (+80%)
Mutual labels:  two-factor-authentication, authy
node-gsm
📲 gsm modem module for node.js
Stars: ✭ 23 (-34.29%)
Mutual labels:  phone, sms
twilio-voice
A Google Voice-like service you can run yourself with Twilio
Stars: ✭ 68 (+94.29%)
Mutual labels:  twilio, phone
sms-bot
an SMS bot built with Google sheets and Twilio
Stars: ✭ 61 (+74.29%)
Mutual labels:  twilio, sms
node-identif
🔑 Helper class to verify one's identity via personal channels(SMS, Phone, E-Mail and more!)
Stars: ✭ 27 (-22.86%)
Mutual labels:  phone, sms
twilito
A tiny, zero dependency Ruby helper for sending text messages with Twilio 💬
Stars: ✭ 16 (-54.29%)
Mutual labels:  twilio, sms
useful-twilio-functions
A set of useful Twilio Functions.
Stars: ✭ 53 (+51.43%)
Mutual labels:  twilio, sms

Rinvex Authy

This package is just a Laravel wrapper for rinvex/authy.

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.

Packagist Scrutinizer Code Quality Travis StyleCI License

Rinvex Authy

Table Of Contents

Usage

Usage is pretty easy and straightforward:

Authy App

Get Authy app instance and interact with it:

$authyApp = app('rinvex.authy.app');
$appStats = $authyApp->stats(); // Get app stats
$appDetails = $authyApp->details(); // Get app details

Authy User

Get Authy user instance and interact with it:

$authyUser = app('rinvex.authy.user');
$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

Authy Token

Get Authy token instance and interact with it:

$authyToken = app('rinvex.authy.token');
$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

Intuitive Responses

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.

Installation

  1. Install the package via composer:

    composer require rinvex/laravel-authy
  2. If you don't have the following lines already, add them to your config/services.php file, before the end of the array:

    'authy' => [
        'secret' => env('AUTHY_SECRET'),
    ],
  3. If you haven't already: Register an Authy account -> Sign in -> Access dashboard -> Create new application -> Copy your API Secret key

  4. If you don't have the following lines already, add them to your project's .env file, at the end:

    AUTHY_SECRET=AuthySecretKey

    Note: make sure to replace AuthySecretKey with your key from the previous step.

  5. Done! You can refer to Usage again.

Upgrade

  • Upgrading To v2.x From v1.x

    API implementation is 100% backward compatible, but sandbox API has been dropped since it's officially deprecated. Also note that PHP7 is now required. Lastly the config options has been changed from services.authy.mode, services.authy.keys.production, and services.authy.keys.sandbox to only one key services.authy.secret for ease of use and consistency, accordingly the environment variables AUTHY_MODE, AUTHY_PRODUCTION_KEY, and AUTHY_SANDBOX_KEY are replaced with only one environment variable AUTHY_SECRET.

Changelog

Refer to the Changelog for a full history of the project.

Support

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.

Bug reports, feature requests, and pull requests are very welcome.

Security Vulnerabilities

If you discover a security vulnerability within this project, please send an e-mail to [email protected]. All security vulnerabilities will be promptly addressed.

About Rinvex

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.

Trademarks

License

This software is released under The MIT License (MIT).

(c) 2016-2022 Rinvex LLC, Some rights reserved.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].