PHP code example of phlib / messagebird-guzzle-client
1. Go to this page and download the library: Download phlib/messagebird-guzzle-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
phlib / messagebird-guzzle-client example snippets
php
use Phlib\MbGuzzleClient\Http\Client;
use GuzzleHttp\Client as GuzzleClient;
$guzzleClient = new GuzzleClient($options = []);
$httpClient = new Client(MessageBird\Client::ENDPOINT, $guzzleClient);
php
$messageBird = new \MessageBird\Client('YOUR_ACCESS_KEY', $httpClient);
// OR
$messageBird = new \Phlib\MbGuzzleClient\Client('YOUR_ACCESS_KEY');
// Get you balance
$balance = $messageBird->balance->read();