kcfbricks / php-bricklink-sdk
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
Requires
- guzzlehttp/guzzle: ^7.10
- guzzlehttp/oauth-subscriber: ^0.8.1
- netresearch/jsonmapper: ^5.0
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.