PHP Shopify is a simple SDK implementation of Shopify API. It helps accessing the API in an object oriented way.
Install with Composer
composer require improck/shopify-sdk-php
You can use PHP Shopify in a pretty simple object oriented way.
\Improck\Shopify\Shopify::generateInstallUrl($myshopifyDomain, $apiKey, $scopes, $redirectUrl)
$shopify = new \Improck\Shopify\Shopify($myshopifyDomain, $accessToken);
$shopify = \Improck\Shopify\Shopify::authorize($myshopifyDomain, $code, $apiKey, $secretKey);
$products = $shopify->get("products.json");
echo $products->count();
$products->each(function($product) {
echo $product['title'];
});
$firstProduct = $products->first();
$result = $shopify->post("webhooks.json", ["webhook" => []]);
$result = $shopify->put("webhooks/4759306.json", ["webhook" => []]]);
$deletedStatus = $shopify->delete("products/5616516.json");
All methods can be viewed on the library wiki: https://laravel.com/docs/5.7/collections#available-methods