Download the PHP package jivochat/shopify-api without Composer
On this page you can find all versions of the php package jivochat/shopify-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package shopify-api
Shopify API (Deprecated, uses Guzzle 3.9)
Please note: the new version using Guzzle 6.2 is actively maintained here
An object-oriented approach towards using the Shopify API.
Supported Objects / Endpoints:
- CustomCollection
- Discount - Shopify Plus
- Fulfillment - via Order
- FulfillmentEvent - via Order
- Metafield
- Order
- OrderRisk - via Order
- Product
- ProductImage
- ProductVariant
- Webhook
Composer
$ composer require janicheg/shopify-api v0.9.9.*
Usage without Laravel
Usage with Laravel
In your config/app.php
Add the following to your providers
array:
ShopifyApi\Providers\ShopifyServiceProvider::class,
Add the following to your aliases
array:
'Shopify' => ShopifyApi\Support\ShopifyFacade::class,
Replace following variables in your .env
Using the Facade gives you Manager
Methods called on Manager
will cascade down onto Client
via the __call
method.
If you're using Laravel,
Models
will return\Illuminate\Support\Collection
instead ofarray
.
Examples of saving data.
Creating a product using a model
Updating a product using a model
Add a product to a collection
or
Creating and updating metafields for resources is more intuitive using key / namespace.
Embedded Apps
Get a token for a redirect response.
Verify App Hmac (works for callback or redirect)
Verify App Webhook Hmac
Caching
If you want to sprinkle a little caching in, setup a service provider and extend the \ShopifyApi\Providers\ShopifyServiceProvider
.
Here is an example Provider:
Contributors
Special Thanks
This repository's structure was modeled after the robust cdaguerre/php-trello-api
.
Todo
- Migrate from
guzzle/guzzle
toguzzlehttp/guzzle
, bump version. - Publish files for Laravel setup
- Artisan Command to create token
License
MIT.