Download the PHP package webtize/shopify-graphql-sdk without Composer
On this page you can find all versions of the php package webtize/shopify-graphql-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package shopify-graphql-sdk
Shopify GraphQL PHP SDK
A modern, PSR-compliant PHP SDK for interacting with Shopify's GraphQL Admin API. This SDK provides a clean, object-oriented interface with automatic HTTP client discovery, rate limiting, error handling, and convenient resource helpers.
Features
- 🚀 Modern PHP 8.1+ with strict typing and best practices
- 🔌 PSR-18/17 Compliant - Works with any HTTP client (Guzzle, Symfony, etc.)
- 🛡️ Automatic Rate Limiting with exponential backoff and retry logic
- 🎯 Type-Safe GraphQL operations with query builder
- 📦 Resource Helpers for common operations (Products, Orders, etc.)
- ⚡ Auto-Discovery of HTTP clients and factories
- 🔍 Comprehensive Error Handling with specific exceptions
- 📖 Extensive Documentation and examples
Installation
Install via Composer:
For HTTP client support, also install one of the following:
Quick Start
Basic Setup
Using Resource Helpers
Custom Queries with Query Builder
Configuration Options
Advanced Usage
Custom HTTP Client
Error Handling
Pagination
Available Resources
Currently implemented resource helpers:
Products- Product management operations
More resources coming soon:
- Orders
- Customers
- Collections
- Inventory
- Fulfillments
GraphQL Query Builder
The included query builder provides a fluent interface for constructing GraphQL queries:
Rate Limiting
The SDK automatically handles Shopify's rate limiting:
- Detects 429 (rate limit) responses
- Implements exponential backoff retry strategy
- Respects
Retry-Afterheaders - Configurable max retry attempts
Testing
Run the test suite:
Run static analysis:
Fix code style:
Requirements
- PHP 8.1 or higher
- A PSR-18 HTTP client implementation
- Valid Shopify store and access token
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
Changelog
v1.0.0
- Initial release
- Core GraphQL client with PSR-18 support
- Query builder with fluent interface
- Products resource helper
- Automatic rate limiting and retries
- Comprehensive error handling
shopify-graphql-php-sdk
All versions of shopify-graphql-sdk with dependencies
psr/http-client Version ^1.0
psr/http-message Version ^1.0|^2.0
psr/http-factory Version ^1.0
php-http/discovery Version ^1.19