Download the PHP package smart-dato/correos-shipping-sdk without Composer
On this page you can find all versions of the php package smart-dato/correos-shipping-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download smart-dato/correos-shipping-sdk
More information about smart-dato/correos-shipping-sdk
Files in smart-dato/correos-shipping-sdk
Package correos-shipping-sdk
Short Description Laravel package for integrating Correos shipping, labels, customs documents, and tracking via Saloon.
License MIT
Homepage https://github.com/smart-dato/correos-shipping-sdk
Informations about the package correos-shipping-sdk
Correos Shipping SDK
Laravel package for integrating with the Correos (Spanish postal service) APIs. Supports shipment preregistration, label and customs document generation, and tracking. Built on Saloon 3.x for HTTP and Spatie Laravel Data 4.x for DTOs.
Requirements
- PHP 8.4+
- Laravel 11 or 12
Installation
Install the package via Composer:
Publish the config file:
Configuration
Add the following environment variables to your .env file:
The published config file (config/correos-shipping-sdk.php) contains all available options:
For the pre-production environment, override the URLs:
If the pre-production environment uses self-signed certificates, you can disable SSL verification:
Warning: Never disable SSL verification in production.
If the pre-production environment only allows IPv4 connections (e.g., CloudFront blocks IPv6), you can force IPv4 resolution:
Usage
Resolve the SDK from the container (or use the CorreosShipping facade):
Preregister Shipments
Print Labels
Print Customs Documents (DCAF/DDP)
Track Shipments
Track Expeditions
Other Preregister Operations
Using the Facade
Available Enums
The package provides typed enums for API constants:
Error Handling
API errors are thrown as CorreosApiException:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- SmartDato
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of correos-shipping-sdk with dependencies
illuminate/contracts Version ^11.0||^12.0||^13.0
saloonphp/saloon Version ^4.0
spatie/laravel-data Version ^4.19
spatie/laravel-package-tools Version ^1.16