koenster / php-voys
A package to make outgoing calls with the API of voys.nl.
Installs: 4 435
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.5.9
- curl/curl: ^1.4
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2025-04-16 22:03:11 UTC
README
#Voys click 2 dial
##How does it work
require_once 'vendor/autoload.php';
$hash = 'your token!!'; // Your click 2 dial token
$fromPhoneNumber = '+31(0)12345678'; // Phone number
$fromPhone = '201'; // Phone number
/** @var \koenster\Voys\Voys $voys */
$voys = new \koenster\Voys\Voys($hash, $fromPhoneNumber, $fromPhone);
$call1 = $voys->call('+31(0)12345678');
/** @var \Koenster\Voys\VoysCall $call1 */
if ($call1->isValid()) {
$call1->getCallFromPhone();
$call1->getCallFromPhoneNumber();
$call1->getCallToDisplayPhoneNumber();
$call1->getCallToPhoneNumber();
$call1->getCallId();
$status = $voys->getCallStatus($call1->getCallId());
if ($status->isValid()) {
$status->response;
}
}
##Stable This repo is not stable yet!