rikkicom / call2fa
This is a client for the Rikkicom's Call2FA service
Installs: 7 436
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
This package is auto-updated.
Last update: 2025-07-12 18:17:53 UTC
README
This is a library you can use for Rikkicom's service named as Call2FA (a phone call as the second factor in an authorization pipeline).
Installation
Just install from Packagist:
composer require rikkicom/call2fa
Example
This simple code makes a new call to the +380631010121 number:
<?php use Rikkicom\Call2FA\Client; use Rikkicom\Call2FA\ClientException; require __DIR__ . '/../vendor/autoload.php'; // API credentials $login = '***'; $password = '***'; // Configuration for this call $callTo = '+380631010121'; $callbackURL = 'http://example.com'; try { // Create the Call2FA client $client = new Client($login, $password); // Make a call $client->call($callTo, $callbackURL); echo "Wait the call!"; } catch (ClientException $e) { // Something went wrong, we recommend to log the error echo "Error:"; echo "\n"; echo $e; }
More examples are in the examples
folder.
- Documentation: https://api.rikkicom.io/docs/en/call2fa/
- Documentation (in Ukrainian): https://api.rikkicom.io/docs/uk/call2fa/
- Documentation (in Russian): https://api.rikkicom.io/docs/ru/call2fa/