Looking to hire Laravel developers? Try LaraJobs

common maintained by laravelshipping

Description
Shared interfaces, value objects, enums, events, and base classes for the Laravel Shipping Suite
Last update
2026/05/02 00:29 (dev-main)
License
Downloads
1

Comments
comments powered by Disqus

Laravel Shipping Common

PHP 8.2+ Laravel 11+ License: MIT

The shared foundation package of the Laravel Shipping Suite. Provides all contracts, value objects, DTOs, enums, events, and exceptions that every carrier package builds upon.

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

Documentation

Full documentation at gitlab.com/laravelshipping/docs.

License

MIT — see LICENSE.