Download the PHP package ivanmitrikeski/laravel-shipping without Composer
On this page you can find all versions of the php package ivanmitrikeski/laravel-shipping. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-shipping
Shipping package for Laravel
Supported shipping providers:
- UPS REST/OAuth API
- FedEx REST/OAuth API
- Canada Post
- USPS
- Purolator
Package can be used outside the Laravel environment as well (by making individual shipping provider requests).
Supported API services:
Shipping Provider | Rate API | Shipment API |
---|---|---|
UPS REST | ✓ | ✓ |
FedEx REST | ✓ | ✓ |
Canada Post | ✓ | ✓ |
Purolator | ✓ | ✓ |
USPS | ✓ | - |
Install package
Run migrations
Setup .env variables
Using sandbox credentials
In order to use test credentials just add param "true" in the *Credentials() object or set environment variable SHIPPING_SANDBOX=false.
Models
There are 4 Eloquent models available: ShippingService, ShippingBox, ShippingOption and ShippingOptionPrice.
ShippingBox and ShippingOptionPrice are used for service Flat. Creating ShippingBox and creating ShippingOptionPrice will allow users to set flat rate shipping prices.
Shipping Quotes
Retrieve all shipping rates, for all enabled shipping providers.
Fourth parameter $exceptions
is optional. If provided function will push all exception to provided array. If not provided, an exception will be thrown each time there is an issue retrieving a quote.
Canada Post
Purolator
UPS
USPS
FedEx
Flat
Creating shipping boxes
Creating shipping option for Flat service
Creating Flat service prices
Creating Shipments
Canada Post
Purolator
UPS
FedEx
Testing
Update phpunit.xml env variables before running tests.
All versions of laravel-shipping with dependencies
ext-soap Version *
openlss/lib-array2xml Version ^1.0
psr/log Version ^3.0
illuminate/collections Version ^10.0|^11.0
guzzlehttp/guzzle Version ^7.6