youzanyun/open-sdk
PHP SDK for the Youzan Cloud open platform. It wraps Youzan's OAuth flow and REST endpoints in a clean client, letting PHP and Laravel apps authenticate shops and call trading, customer, and marketing APIs without hand-rolling token handling, request signing, or response parsing.
Architecture fit
YouzanGateway interface in the domain layer and let the SDK live in an adapter implementation. Nothing above the adapter should import Youzan\Open\*.Integration feasibility
Technical risk
guzzlehttp/guzzle to ^6, which conflicts with Laravel 9+ (Guzzle 7). Expect to fork and relax constraints, or to vendor only the signing logic.if ($response) checks will silently swallow failures.Key questions
kdt_id per merchant.Http facade?Stack fit
composer.json for PHP and Guzzle constraints as the first action item — this single check determines whether we integrate or fork.config/youzan.php. The MIT license permits this and it removes the unmaintained-upstream risk from the critical path.Http client to inherit retries, middleware, logging, and test fakes for free.Migration path
YouzanGateway interface from day one, so replacing the SDK later is a one-file change.Compatibility
composer.json. Do not allow floating constraints on an unmaintained package.Sequencing
Maintenance
Support
Scaling
Cache::lock; reuse a single Guzzle handler; set aggressive connect/read timeouts (e.g., 2s/10s) rather than defaults.Failure modes
composer validate in CI.Ramp-up
youzan.<resource>.<action>).How can I help you explore Laravel packages today?