Looking to hire Laravel developers? Try LaraJobs

common maintained by laravelshipping

Description
Shared Laravel shipping API contracts, DTOs, value objects, events, and base classes for UPS, FedEx, USPS, DHL, labels, rates, tracking, and address validation
Last update
2026/05/02 21:29 (dev-main)
License
Downloads
8

Comments
comments powered by Disqus

Laravel Shipping Common

Latest Version on Packagist PHP 8.2+ Laravel 10–12 License: MIT

The shared foundation package of the Laravel Shipping Suite. It provides the Laravel shipping API contracts, value objects, DTOs, enums, events, and exceptions used by UPS, FedEx, USPS, DHL, rate shopping, address validation, tracking, and shipping label packages.

Use this package when you want a consistent Laravel interface for carrier integrations, shipping rates, shipment requests, label generation, tracking events, return labels, and address validation results.

Installation

composer require laravelshipping/common

Publish Configuration

php artisan vendor:publish --tag=laravelshipping-common-config

What's Included

Component Description
CarrierInterface The single contract all carriers implement
Value Objects ShipFrom, ShipTo, Package, Dimensions, Money, Address
DTOs RateRequest, ShipmentRequest, ShipmentResult, AddressValidationResult
Collections RateCollection, TrackingEventCollection
Enums ServiceType, ReturnType, SignatureOption, LabelFormat
Events RatesRetrieved, ShipmentCreated, ReturnShipmentCreated, ShipmentVoided, TrackingStatusUpdated, RateShopCompleted
Exceptions CarrierException, UnsupportedReturnTypeException
Hook Contracts BeforeQuoteHook, AfterQuoteHook
HTTP Controllers Single-carrier rate/shipment endpoints

Related Packages

Documentation

Full documentation at gitlab.com/laravelshipping/docs.

License

MIT — see LICENSE.