Shared Laravel shipping API contracts, DTOs, value objects, events, and base classes for UPS, FedEx, USPS, DHL, labels, rates, tracking, and address validation

Maintainers

Package info

gitlab.com/laravelshipping/common

Issues

pkg:composer/laravelshipping/common

Transparency log

Statistics

Installs: 8

Dependents: 1

Suggesters: 0

Stars: 0

v1.0.0 2026-05-02 00:43 UTC

This package is auto-updated.

Last update: 2026-07-03 00:49:14 UTC


README

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

ComponentDescription
CarrierInterfaceThe single contract all carriers implement
Value ObjectsShipFrom, ShipTo, Package, Dimensions, Money, Address
DTOsRateRequest, ShipmentRequest, ShipmentResult, AddressValidationResult
CollectionsRateCollection, TrackingEventCollection
EnumsServiceType, ReturnType, SignatureOption, LabelFormat
EventsRatesRetrieved, ShipmentCreated, ReturnShipmentCreated, ShipmentVoided, TrackingStatusUpdated, RateShopCompleted
ExceptionsCarrierException, UnsupportedReturnTypeException
Hook ContractsBeforeQuoteHook, AfterQuoteHook
HTTP ControllersSingle-carrier rate/shipment endpoints

Related Packages

Documentation

Full documentation at gitlab.com/laravelshipping/docs.

License

MIT — see LICENSE.