kcfbricks/php-bricklink-sdk

There is no license information available for the latest version (v0.3.1) of this package.

PHP SDK for the BrickLink API

Installs: 29

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/kcfbricks/php-bricklink-sdk

v0.3.1 2025-09-08 08:55 UTC

This package is auto-updated.

Last update: 2025-11-19 01:52:27 UTC


README

PHP SDK for the BrickLink API

Features

  • Complete BrickLink API integration
  • OAuth1 authentication
  • Order management (fetch, update, status changes)
  • Inventory operations
  • Mock testing system for development and testing without real API calls

Mock Testing

This SDK includes a comprehensive mock testing system that allows you to develop and test your BrickLink integration without making real API calls.

use Kcfbricks\PhpBricklinkSdk\Testing\MockClientFactory;
use Kcfbricks\PhpBricklinkSdk\Order\OrderRequest;

// Create mock client with realistic test data
$mockClient = MockClientFactory::createWithRealisticData();

// Use exactly like the real client
$orders = OrderRequest::getOrders($mockClient);
$order = OrderRequest::getOrder($mockClient, 12345);
$orderItems = OrderRequest::getOrderItems($mockClient, 12345);

See MOCK_TESTING.md for complete documentation and examples.