1. Go to this page and download the library: Download yopify/yo-dev-php-sdk 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/ */
yopify / yo-dev-php-sdk example snippets
use Yopify\Yo\Client;
$client = new Client();
$yoClient->authToken = 'YOUR-TOKEN-HERE'; // auth token can be found here: https://local.yopify.com/settings#/api
// OR
$yoClient->setBasicAuth('[email protected]', 'secret'); // You can use basic auth also
$isAuthenticated = $yoClient->ping(); // false if not authenticated, current timestamp if success