Download the PHP package shipkit-bd/laravel-courier-bd without Composer
On this page you can find all versions of the php package shipkit-bd/laravel-courier-bd. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shipkit-bd/laravel-courier-bd
More information about shipkit-bd/laravel-courier-bd
Files in shipkit-bd/laravel-courier-bd
Package laravel-courier-bd
Short Description Unified Bangladeshi Courier Package for Laravel (Pathao, RedX, Steadfast)
License MIT
Homepage https://github.com/shipkit-bd/laravel-courier-bd
Informations about the package laravel-courier-bd
Laravel Courier BD 📦
A unified Laravel package that provides a single, consistent driver-based API interface for integrating multiple Bangladeshi courier services starting with Pathao, RedX, and Steadfast.
Key Features
- 🚚 One Interface, Multiple Couriers: Unified methods (
createOrder,track,cancelOrder,calculateFee,checkCoverage) for all Bangladeshi couriers. - 💡 Fee Comparison Engine:
Courier::compareFees($order)dynamically queries all enabled couriers and sorts them by price from cheapest to most expensive. - 🔄 Status Normalization: Maps diverse courier statuses (
Delivered,in-transit,partial_delivered, etc.) into a singleDeliveryStatusenum. - 🔔 Built-in Webhooks & Events: Automatic webhook listener endpoints (
/shipkit/webhooks/{courier}) that dispatchShipmentStatusUpdatedandShipmentDeliveredLaravel events. - 📊 Shipment History Logging: Optional Eloquent database logging of all package shipments.
Installation
Install the package via Composer:
Publish the configuration file and database migrations using the artisan installer:
Run database migrations (optional, if automatic shipment logging is enabled):
Environment Configuration
Add your courier credentials to your .env file:
Usage
1. Creating a Shipment Order
Using the default driver:
Explicitly specifying a driver:
2. Tracking a Shipment
3. Fee Comparison Feature ⭐
Find the cheapest courier for an order automatically:
4. Webhooks & Events
The package automatically exposes webhook routes at /shipkit/webhooks/{courier} (e.g. /shipkit/webhooks/pathao, /shipkit/webhooks/redx, /shipkit/webhooks/steadfast).
Listen to delivery events in your EventServiceProvider or listeners:
Courier Feature Matrix
| Feature | Pathao | RedX | Steadfast |
|---|---|---|---|
| Order Creation | ✅ | ✅ | ✅ |
| Parcel Tracking | ✅ | ✅ | ✅ |
| Order Cancellation | ✅ | ✅ | ✅ |
| Dynamic Fee Calculation | ✅ | ✅ | ✅ |
| Webhook Support | ✅ | ✅ | ✅ |
| Nationwide Coverage | 64 Districts | 64 Districts | 64 Districts |
Testing
Run tests with PHPUnit:
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-courier-bd with dependencies
illuminate/support Version ^10.0|^11.0
illuminate/http Version ^10.0|^11.0
illuminate/database Version ^10.0|^11.0