Shared interfaces, value objects, enums, events, and base classes for the Laravel Shipping Suite

Maintainers

Package info

gitlab.com/laravelshipping/common

Issues

pkg:composer/laravelshipping/common

Statistics

Installs: 5

Dependents: 1

Suggesters: 0

Stars: 0

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

This package is auto-updated.

Last update: 2026-05-02 05:48:33 UTC


README

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

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

Documentation

Full documentation at gitlab.com/laravelshipping/docs.

License

MIT — see LICENSE.