Ifbyphone API Client
This client provides developers with a framework they can use to quickly take advantage of Ifbyphone's API., (*1)
Installation
Installation is conveniently provided via [Composer][2]., (*2)
To get started, install composer in your project:, (*3)
$ curl -s https://getcomposer.org/installer | php
Next, add a composer.json file containing the following:, (*4)
}
"require": {
"ifbyphone/api-client": "dev-master"
}
}
Finall, install!, (*5)
$ php composer.phar install
Usage
Using the Ifbyphone API client is easy:, (*6)
``` php
<?php, (*7)
use Ifbyphone\Client;, (*8)
$client = new Client('YOUR API KEY');
$client->api('sms')->(array(
'to' => 1112223333,
'from => '4445556666,
'message' => 'Test message!'
));, (*9)
Method changing is also supported:
```php
<?php
use Ifbyphone\Client;
$client = new Client('YOUR API KEY');
$client->api('sms')->to(1112223333)
->from(4445556666)
->message('Test message!');