Download the PHP package webkult/shirtigo-php-api-wrapper without Composer
On this page you can find all versions of the php package webkult/shirtigo-php-api-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webkult/shirtigo-php-api-wrapper
More information about webkult/shirtigo-php-api-wrapper
Files in webkult/shirtigo-php-api-wrapper
Package shirtigo-php-api-wrapper
Short Description A PHP wrapper for the Shirtigo API.
License MIT
Informations about the package shirtigo-php-api-wrapper
Shirtigo PHP API Wrapper
A modern PHP wrapper for the Shirtigo Cockpit API, built with Saloon for clean, maintainable HTTP client interactions.
Features
- 🚀 Modern PHP 8.0+ - Built with the latest PHP features and PSR-12 standards
- 🔧 Saloon Integration - Leverages Saloon's powerful HTTP client capabilities
- 🏗️ Clean Architecture - Well-structured, maintainable code following SOLID principles
- 📚 Comprehensive API Coverage - Full support for all Shirtigo Cockpit API endpoints
- 🔐 Authentication Support - Both API Key and OAuth2 authentication methods
- 🎯 Type Safety - Strong typing throughout the codebase
Installation
Install via Composer:
Quick Start
Basic Usage
OAuth2 Authentication
Available API Resources
The wrapper provides access to all Shirtigo Cockpit API endpoints through organized resource classes:
Core Resources
catalogApi()- Browse base products and categoriesorderApi()- Manage orders and order operationsproductApi()- Handle customized productsdesignApi()- Create and manage designsprojectApi()- Organize products into projects
Additional Resources
brandingApi()- Custom branding and logosimageApi()- Image processing and mockupsintegrationApi()- Third-party integrationsuserApi()- User managementwarehousingApi()- Inventory managementwebhookApi()- Webhook configurationother()- Additional utilities and statistics
Usage Examples
Browse Catalog
Manage Orders
Work with Designs
Image Processing
Error Handling
The wrapper uses Saloon's built-in error handling mechanisms:
Configuration
Base URL
The API client is configured to use the official Shirtigo Cockpit API endpoint:
Headers
The client automatically sets the following headers:
Accept: application/jsonAuthentication: Bearer [your-token]
Requirements
- PHP 8.0 or higher
- Composer
- Saloon 3.0+
Development
Code Quality
This package follows strict coding standards:
- PSR-12 - PHP coding standard
- SOLID Principles - Clean architecture design
- Type Declarations - Full type safety
- Modern PHP - Uses PHP 8.0+ features
Testing
Code Style
License
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
For support and questions:
- Author: Benjamin Klein
- Email: [email protected]
- GitHub: webkult/shirtigo-php-api-wrapper
Related Projects
Changelog
See CHANGELOG.md for a list of changes and version history.