kcfbricks/php-bricklink-sdk

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

PHP SDK for the BrickLink API

Maintainers

Package info

github.com/kcfbricks/php-bricklink-sdk

pkg:composer/kcfbricks/php-bricklink-sdk

Statistics

Installs: 44

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.3.3 2026-02-28 19:23 UTC

This package is auto-updated.

Last update: 2026-03-28 19:28:04 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.