Download the PHP package luminarix/laravel-shopify-graphql without Composer
On this page you can find all versions of the php package luminarix/laravel-shopify-graphql. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download luminarix/laravel-shopify-graphql
More information about luminarix/laravel-shopify-graphql
Files in luminarix/laravel-shopify-graphql
Package laravel-shopify-graphql
Short Description GraphQL client for Shopify.
License MIT
Homepage https://github.com/luminarix/laravel-shopify-graphql
Informations about the package laravel-shopify-graphql
GraphQL client for Shopify
A Laravel package for interacting with Shopify's GraphQL Admin API. Built on Saloon with automatic rate limiting and retry handling.
Installation
Publish the config file:
Basic Usage
Eloquent Model Integration
Create a service class to manage client instances:
Create a trait for your models:
Use on your Shopify shop model:
Now you can call GraphQL directly from your model:
Response Handling
All query and mutation methods return a GraphQLClientTransformer:
The transformer is also equipped with the Macroable trait so you can add your own custom methods if needed.
Getting Response with Extensions
Pass withExtensions: true to include cost and rate limit data:
Bulk Operations
For large data exports, use bulk operations:
Rate Limiting
The package automatically handles Shopify's rate limits:
- Tracks query costs from response extensions
- Waits when throttled before retrying
- Configurable retry attempts
Get current rate limit info:
Custom Rate Limit Service
Implement RateLimitable to customize rate limit handling:
Configuration
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- Luminarix Labs
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-shopify-graphql with dependencies
illuminate/contracts Version ^12.0|^13.0
saloonphp/saloon Version ^4.0.0
spatie/laravel-package-tools Version ^1.16
webonyx/graphql-php Version ^15.19