Download the PHP package borsch/shopify without Composer
On this page you can find all versions of the php package borsch/shopify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download borsch/shopify
More information about borsch/shopify
Files in borsch/shopify
Package shopify
Short Description An implementation of Shopify REST API for PHP.
License MIT
Informations about the package shopify
Under development, whole API is not covered yet...
Borsch - Shopify
An implementation of Shopify REST API for PHP.
This package is part of the Borsch framework.
Installation
Via Composer :
Usage
In order to use this package you will need to provide your store address and access token so that API calls can be made.
Each Shopify API has a class in this package and can be instantiated via Shopify class (factory class) or directly by calling the constructor.
You can then use the class methods to set values and call the API :
To send or fetch data from Shopify API you need to use the HTTP method corresponding to it:
Method | Parameters | Details |
---|---|---|
->get() |
$id = null, array $query = null |
Fetch the list from the API. |
If the object ID is set by ->id(123456789) or $id is provided, then will return an instance of the class with data fetched from the API. |
||
If $query is provided, then will return an instance of the class fetched from the API and filtered by $query . Example : GET /admin/orders.json?ids=1073459985 |
||
->post() |
int $id = null |
Create the object. |
If the object ID is set by ->id(123456789) or $id is provided, then will return an instance of the class with data from the created object. |
||
->delete() |
int $id = null |
Delete the object. |
If the object ID is set by ->id(123456789) or $id is provided, then will return an instance of the class with data from the deleted object. |
||
->put() |
None | Update the object. |