ifbyphone / api-client
There is no license information available for the latest version (dev-master) of this package.
Ifbyphone API Client
dev-master
2013-06-20 21:53 UTC
This package is not auto-updated.
Last update: 2024-12-17 05:12:27 UTC
README
This client provides developers with a framework they can use to quickly take advantage of Ifbyphone's API.
Installation
Installation is conveniently provided via [Composer][2].
To get started, install composer in your project:
$ curl -s https://getcomposer.org/installer | php
Next, add a composer.json file containing the following:
} "require": { "ifbyphone/api-client": "dev-master" } }
Finall, install!
$ php composer.phar install
Usage
Using the Ifbyphone API client is easy:
<?php use Ifbyphone\Client; $client = new Client('YOUR API KEY'); $client->api('sms')->(array( 'to' => 1112223333, 'from => '4445556666, 'message' => 'Test message!' ));
Method changing is also supported:
<?php use Ifbyphone\Client; $client = new Client('YOUR API KEY'); $client->api('sms')->to(1112223333) ->from(4445556666) ->message('Test message!');