PHP code example of xiaomi / galaxy-fds-sdk-php

1. Go to this page and download the library: Download xiaomi/galaxy-fds-sdk-php 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/ */

    

xiaomi / galaxy-fds-sdk-php example snippets


$url = "http://search.twitter.com/search.json?q=" . urlencode('#PHP');
$response = Request::get($url)
    ->withXTrivialHeader('Just as a demo')
    ->send();

foreach ($response->body->results as $tweet) {
    echo "@{$tweet->from_user} tweets \"{$tweet->text}\"\n";
}


$r = \Httpful\Request::get($uri)->sendIt();
...