mohamedhekal / shipbridge-mylerz
Mylerz carrier driver for ShipBridge (Egypt)
v0.2.0
2026-07-16 15:13 UTC
Requires
- php: ^8.2
- illuminate/http: ^11.0|^12.0
- illuminate/support: ^11.0|^12.0
- mohamedhekal/shipbridge: ^0.1
Requires (Dev)
- laravel/pint: ^1.18
- orchestra/testbench: ^9.0|^10.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- phpstan/phpstan: ^2.0
README
Mylerz driver for ShipBridge · Egypt / Tunisia / Morocco / Algeria / Jordan
Docs: docs/GUIDE_AR.md · docs/API.md
Based on the official Mylerz Integration API used by the WooCommerce plugin.
بالعربي — في ٣ خطوات
١) التثبيت
composer require mohamedhekal/shipbridge mohamedhekal/shipbridge-mylerz
٢) .env
SHIPBRIDGE_DRIVER=mylerz MYLERZ_BASE_URL=https://integration.mylerz.net MYLERZ_USERNAME=your-username MYLERZ_PASSWORD=your-password MYLERZ_WAREHOUSE=Main
٣) ابعت شحنة
use Hekal\ShipBridge\Facades\ShipBridge; use Hekal\ShipBridge\DTOs\Address; use Hekal\ShipBridge\DTOs\CreateShipmentRequest; use Hekal\ShipBridge\DTOs\Parcel; $shipment = ShipBridge::driver('mylerz')->createShipment(new CreateShipmentRequest( origin: new Address('المخزن', 'شارع ١', 'Cairo', 'EG', phone: '01011111111'), destination: new Address('العميل', '١٢ النيل', 'Giza', 'EG', phone: '01000000000'), parcels: [new Parcel(weightKg: 1.2, description: 'ملابس')], reference: 'ORD-42', metadata: [ 'cod' => 250, 'neighborhood' => 'Dokki', // مطلوب عند Mylerz 'warehouse' => 'Main', ], ));
English — Quick start
| Method | Mylerz API |
|---|---|
| Auth | POST /token (password grant) |
createShipment |
POST /api/orders/addorders |
track |
POST /api/packages/GetPackageListStatus |
label |
POST /api/packages/GetAWB |
createReturn / createExchange |
addorders with category |
Testing
composer install && composer test
License
MIT © Mohamed Hekal
