testudio / retailexpress-php
Retail Express API PHP Client
1.0.3
2025-06-25 13:49 UTC
Requires
- php: >=8.0
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- phpunit/phpunit: ^9.5
README
A PHP client wrapper for the Retail Express API (v2.1), built with Guzzle.
Installation
composer require testudio/retailexpress-php
Usage
use RetailExpress\RetailExpressClient; $client = new RetailExpressClient('your_api_key'); // Fetch customers $customers = $client->getCustomers(); // Create a customer $newCustomer = $client->createCustomer([ 'first_name' => 'John', 'last_name' => 'Smith', 'email' => 'john@example.com' ]); // Fetch products $products = $client->getProducts(); // Get a specific order $order = $client->getOrder(123);
Endpoints Covered
- Customers: list, get, create, update
- Products: list, get
- Product Detail Logs: list, get
- Product Prices: list, get
- Orders: list, get
Requirements
- PHP 8.0+
- Guzzle 7+
Testing
composer install vendor/bin/phpunit