shippo/shippo-php
Shippo’s PHP library for Laravel and PHP applications, offering a simple client for the Shippo shipping API. Create labels, compare carrier rates, validate addresses, track packages, and manage returns with multi-carrier support.
shippo/shippo-php is a thin PHP SDK around Shippo’s REST API, not a Laravel-native package. It fits best behind an application-owned ShippingGateway/ShippoAdapter interface so checkout, order management, and fulfillment code do not depend directly on SDK classes. Good fit for server-side rating, label purchase, tracking, and address validation; it does not solve persistence, webhooks, retries, idempotency, multi-tenant credentials, or label document storage.SHIPPO_TOKEN through config/services.php and environment secrets. Keep API tokens server-side only. Wrap SDK calls in an adapter that returns application DTOs and normalized errors. Queue label purchases, tracking syncs, and bulk operations; store Shippo shipment/transaction/rate IDs and label artifacts in application-owned tables/storage.ShippingGateway contract first. If an existing shipping integration exists, route one low-risk flow, such as rating, through the new adapter and shadow-compare results. Then migrate label purchase, then tracking/webhooks. If no integration exists, start in Shippo test mode with a pilot shipping flow before production enablement.composer why-not against Laravel, PHP, and Guzzle constraints. Run a sandbox spike on the target runtime before committing. If incompatible, use a maintained fork or call Shippo’s REST API directly through Laravel’s HTTP client behind the same adapter.How can I help you explore Laravel packages today?