1. Go to this page and download the library: Download mattjmattj/yo-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/ */
mattjmattj / yo-client example snippets
public function post(\Yo\HTTP\Request $request) : \Yo\HTTP\Response
// no : you should not use that one, but...
$http = new \Yo\HTTP\Client\LightCurl();
$api_token = '12345-67890-12345-345678';
$yo = new \Yo\Client($http, $api_token);
// you're done. You can Yo me right now :
$yo->yo('MATTJMATTJ');
// or maybe you want to Yo all your subscribers
$yo->yoAll();
// or Yo me a link to an amazing github repo
$yo->yo('MATTJMATTJ', new \Yo\Link('https://github.com/mattjmattj/yo-client'));
// or Yo me your location
$lat = 12.345;
$long = 67.891;
$yo->yo('MATTJMATTJ', new \Yo\Location($lat, $long);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.