osiset/basic-shopify-api
A lightweight PHP library for Shopify’s REST and GraphQL Admin APIs. Provides a clean client, request/response handling, pagination helpers, rate limit awareness, and easy authentication setup. Ideal for building Shopify apps or integrating stores in any PHP project.
Iterable and Countable on ResponseAccesskeys and values to allow for getting keys and values easierSleep deferrer now returns a float for the time microtimeMemory store now has a reset method to support the new rate limitingMemory now accepts more then two values to support the new rate limitingContains breaking changes; Consult UPGRADING.md.
guzzle_retry_middleware which respects Shopify's 'X-Retry-After' headerStateStorage interface, and a default in-memory storage class providedbodyArray to response object of rest and graph, this is the same as body except instead of a stdClass being returned, its an array.graphAsync./admin/oauth/access_scopes.json.extractHeaderLink for #45, to include both next and previous.Link header (#39)errors now returns a boolean instead of an object. body now contains the error response.setLogger.setVersion(string $version) method added, and new getVersion() method addedper-user authentication. There is now ability to set/grab a user from authentication.requestAndSetAccess(string $code) method added which will automatically set the access token and user (if applicable) to the API instance for you as a helper method.authRequest middleware to Guzzle which handles adding all needed headers and checking required API keys to run those requestsPossible breaking release depending on how you handle errors
graph() call now accepts two arguments, graph(string $query, array $variables = [])Contains breaking changes
To better the library, it has been reverted back to its original single-class form and backwards compatibile with 1.x.x
getApiCalls() now takes two arguments, first being rest|graph, second being the keyrest() is now for REST callsgraph() is now for GraphQL callsrequest() is aliased to rest() for backward compatibilityContains breaking changes
OhmyBrew\ShopifyAPIGnikyt\ShopifyAPI\GraphAPIGnikyt\ShopifyAPI\RestAPIfinal flag to the constructorfinal flag to ResponseAccess classHow can I help you explore Laravel packages today?