Download the PHP package slince/shopify-api-php without Composer
On this page you can find all versions of the php package slince/shopify-api-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download slince/shopify-api-php
More information about slince/shopify-api-php
Files in slince/shopify-api-php
Informations about the package shopify-api-php
:rocket: PHP SDK for the Shopify API
Installation
Install via composer
Quick Start
Initialize the client
You first need to initialize the client. For that you need your Shop Name and AccessToken
Middleware
Middleware augments the functionality of handlers by invoking them in the process of generating responses. Middleware is implemented as a higher order function that takes the following form.
Built-in middleware:
- DelayMiddleware
Exception
The Client throws the following types of exceptions.
- BadRequestException 400
- UnauthorizedException 401
- PaymentRequiredException 402
- ForbiddenException 403
- NotFoundException 404
- NotAcceptableException 406
- UnprocessableEntityException 422
- TooManyRequestsException 429
- ClientException other
Use Manager to manipulate your data;
-
Lists products
-
Lists products by pagination
-
Get the specified product
-
Creates a new product
- Removes the product by its id
The product is an instance of Slince\Shopify\Manager\Product\Product
; You can access properties like following:
Available managers:
- Access\AccessScope
- Access\StorefrontAccessToken
- Analytics\Report
- Billing\ApplicationCharge
- Billing\ApplicationCredit
- Billing\RecurringApplicationCharge
- Billing\UsageCharge
- Customers\Address
- Customers\Customer
- Customers\CustomerSavedSearch
- Discounts\DiscountCode
- Discounts\PriceRule
- Events\Event
- Events\Webhook
- Inventory\InventoryItem
- Inventory\InventoryLevel
- Inventory\Location
- MarketingEvent\MarketingEvent
- OnlineStore\Article
- OnlineStore\Asset
- OnlineStore\Blog
- OnlineStore\Comment
- OnlineStore\Page
- OnlineStore\Redirect
- OnlineStore\ScriptTag
- OnlineStore\Theme
- Orders\DraftOrder
- Orders\Order
- Orders\Refund
- Orders\Risk
- Orders\Transaction
- Products\Collect
- Products\CustomCollection
- Products\Image
- Products\Product
- Products\SmartCollection
- Products\Variant
- Shipping\AssignedFulfillmentOrder
- Shipping\CarrierService
- Shipping\Fulfillment
- Shipping\FulfillmentOrder
- Shipping\FulfillmentService
- Store\Country
- Store\Currency
- Store\Policy
- Store\Province
- Store\ShippingZone
- Store\Shop
You can access the manager like $client->getProductManager()
, $client->getOrderManager()
.
Basic CURD
If you don't like to use managers, you can also manipulate data like this:
The returned value is just an array;
LICENSE
The MIT license. See MIT
All versions of shopify-api-php with dependencies
doctrine/inflector Version ^1.2|^2.0
doctrine/cache Version ^1.0
guzzlehttp/guzzle Version ^7.0
slince/di Version ^3.0
symfony/yaml Version ^4.2|^5.0|^6.0
jms/serializer Version ^3.10