testudio/retailexpress-php

Retail Express API PHP Client

1.0.3 2025-06-25 13:49 UTC

This package is auto-updated.

Last update: 2025-06-25 13:52:35 UTC


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