PHPackages                             mohamedmohamedhekal/shipbridge - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mohamedmohamedhekal/shipbridge

Abandoned → [mohamedhekal/shipbridge](/?search=mohamedhekal%2Fshipbridge)Library

mohamedmohamedhekal/shipbridge
==============================

Unified Laravel shipping abstraction for create, track, label, return, and exchange across carriers

v0.1.3(1mo ago)05↓66.7%MITPHPPHP ^8.2CI passing

Since Jul 16Pushed 1mo agoCompare

[ Source](https://github.com/mohamedhekal/shipbridge)[ Packagist](https://packagist.org/packages/mohamedmohamedhekal/shipbridge)[ Docs](https://github.com/mohamedhekal/shipbridge)[ RSS](/packages/mohamedmohamedhekal-shipbridge/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (8)Versions (5)Used By (0)

ShipBridge
==========

[](#shipbridge)

[![CI](https://github.com/mohamedhekal/shipbridge/actions/workflows/tests.yml/badge.svg)](https://github.com/mohamedhekal/shipbridge/actions)[![License: MIT](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![PHP](https://camo.githubusercontent.com/c2588b5670f2c910b8cc849ace22a22efda8956b7c2f797d11d2096bbfc7b1f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d3737374242342e737667)](https://www.php.net/)[![Laravel](https://camo.githubusercontent.com/b38aa2ff655206bfa9f97c1aeced06f25bb3e31fb085fa974c79934c25469f41/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d313125324631322d4646324432302e737667)](https://laravel.com/)[![Packagist](https://camo.githubusercontent.com/28cbfa7b48f4d20afd89142a0f4df8e1f791e88f771baf18c3171a7f6cf1bd2f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f68616d656468656b616c2f736869706272696467652e737667)](https://packagist.org/packages/mohamedhekal/shipbridge)

**Search terms:** laravel, shipping, carriers, tracking, labels, returns, logistics, ecommerce, php, laravel-package, courier, fulfillment.

Unified Laravel shipping abstraction: create, track, label, return, and exchange across carrier drivers with normalized statuses.

**شرح عربي بسيط جدًا:** [docs/GUIDE\_AR.md](docs/GUIDE_AR.md)

Installation
------------

[](#installation)

```
composer require mohamedhekal/shipbridge
php artisan vendor:publish --tag=shipbridge-config
```

Add the carrier you need (separate package per company):

```
composer require mohamedhekal/shipbridge-bosta
# or: shipbridge-aramex / shipbridge-fedex / shipbridge-mng / …
```

Carrier packages
----------------

[](#carrier-packages)

All carrier drivers below ship as **`^0.2`** with real vendor APIs (not scaffolds).

CarrierPackageRegionIntegration[Bosta](https://github.com/mohamedhekal/shipbridge-bosta)`mohamedhekal/shipbridge-bosta`EgyptBusiness API v2[Aramex](https://github.com/mohamedhekal/shipbridge-aramex)`mohamedhekal/shipbridge-aramex`MENA / GlobalShipping SOAP V2[Mylerz](https://github.com/mohamedhekal/shipbridge-mylerz)`mohamedhekal/shipbridge-mylerz`Egypt / MENAIntegration API[Turbo](https://github.com/mohamedhekal/shipbridge-turbo)`mohamedhekal/shipbridge-turbo`EgyptExternal API[J&amp;T Express](https://github.com/mohamedhekal/shipbridge-jtexpress)`mohamedhekal/shipbridge-jtexpress`EgyptOpen Platform[SMSA](https://github.com/mohamedhekal/shipbridge-smsa)`mohamedhekal/shipbridge-smsa`KSA / GCCSECOM SOAP[FedEx](https://github.com/mohamedhekal/shipbridge-fedex)`mohamedhekal/shipbridge-fedex`GlobalREST Ship/Track[UPS](https://github.com/mohamedhekal/shipbridge-ups)`mohamedhekal/shipbridge-ups`GlobalREST OAuth2[DHL Express](https://github.com/mohamedhekal/shipbridge-dhl)`mohamedhekal/shipbridge-dhl`GlobalMyDHL API[Egypt Post](https://github.com/mohamedhekal/shipbridge-egyptpost)`mohamedhekal/shipbridge-egyptpost`EgyptTrackTrace + partner gateway[MNG Kargo](https://github.com/mohamedhekal/shipbridge-mng)`mohamedhekal/shipbridge-mng`TurkeyApiZone REST (DHL eCommerce TR)[HepsiJet](https://github.com/mohamedhekal/shipbridge-hepsijet)`mohamedhekal/shipbridge-hepsijet`TurkeyIntegration REST[Yurtiçi Kargo](https://github.com/mohamedhekal/shipbridge-yurtici)`mohamedhekal/shipbridge-yurtici`TurkeyShippingOrder SOAP[Aras Kargo](https://github.com/mohamedhekal/shipbridge-aras)`mohamedhekal/shipbridge-aras`TurkeyCustomerWS SOAP[Sürat Kargo](https://github.com/mohamedhekal/shipbridge-surat)`mohamedhekal/shipbridge-surat`TurkeyWebServices SOAP[PTT Kargo](https://github.com/mohamedhekal/shipbridge-ptt)`mohamedhekal/shipbridge-ptt`TurkeyPttVeriYukleme SOAP```
composer require mohamedhekal/shipbridge-bosta:^0.2
# Turkey example:
composer require mohamedhekal/shipbridge-mng:^0.2
```

Quick start
-----------

[](#quick-start)

```
use Hekal\ShipBridge\Facades\ShipBridge;
use Hekal\ShipBridge\DTOs\Address;
use Hekal\ShipBridge\DTOs\CreateShipmentRequest;
use Hekal\ShipBridge\DTOs\Parcel;

$shipment = ShipBridge::driver('bosta')->createShipment(new CreateShipmentRequest(
    origin: new Address('Warehouse', '1 Industrial Rd', 'Cairo', 'EG'),
    destination: new Address('Customer', '12 Nile St', 'Giza', 'EG'),
    parcels: [new Parcel(weightKg: 1.2)],
    reference: 'ORD-42',
));

$label = ShipBridge::driver('bosta')->label($shipment->id);
$tracking = ShipBridge::driver('bosta')->track($shipment->trackingNumber);
```

Default built-in driver is `fake` (in-memory). Use `http` for a generic JSON carrier, or install a carrier package above.

Returns &amp; exchanges
-----------------------

[](#returns--exchanges)

First-class methods—not afterthoughts:

```
ShipBridge::createReturn(new ReturnShipmentRequest(...));
ShipBridge::createExchange(new ExchangeShipmentRequest(...));
```

Status normalization
--------------------

[](#status-normalization)

Carrier strings (`OFD`, `shipped`, …) map to `ShipmentStatus` via `config/shipbridge.php` (`status_map` + `status_aliases`). Unknown values become `exception` rather than throwing, so webhooks stay resilient.

Limitations
-----------

[](#limitations)

- Each carrier still needs **live credentials** from that company (sandbox vs production differs).
- Labels are opaque bytes/URLs from the driver; no PDF layout engine.
- Rate shopping and live pickup calendars are out of scope.
- Egypt Post has no public create API (Wassalha); create needs a contracted partner gateway — tracking works via official TrackTrace.

Testing
-------

[](#testing)

```
composer install && composer test
```

License
-------

[](#license)

MIT

---

 [![ShipBridge — Unified Laravel shipping](docs/assets/banner.png)](docs/assets/banner.png)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance90

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

45d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9d7c092a109fe780c7efd87ce4142eae2c0cec0f92fd1e87e769bec5661953b?d=identicon)[mohamedhekal](/maintainers/mohamedhekal)

---

Top Contributors

[![mohamedhekal](https://avatars.githubusercontent.com/u/21014387?v=4)](https://github.com/mohamedhekal "mohamedhekal (7 commits)")

---

Tags

ecommercelaravellaravel-packagelogisticsphpshippingphplaravellaravel-packagetrackingecommerceshippingcourierlogisticslabelsfulfillmentreturnsshipping apicarriers

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mohamedmohamedhekal-shipbridge/health.svg)

```
[![Health](https://phpackages.com/badges/mohamedmohamedhekal-shipbridge/health.svg)](https://phpackages.com/packages/mohamedmohamedhekal-shipbridge)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3365.5M359](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

80732.6M270](/packages/laravel-mcp)[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k118.2M1.0k](/packages/laravel-socialite)[laravel/scout

Laravel Scout provides a driver based solution to searching your Eloquent models.

1.7k59.5M714](/packages/laravel-scout)[illuminate/auth

The Illuminate Auth package.

10528.8M1.4k](/packages/illuminate-auth)[illuminate/routing

The Illuminate Routing package.

1419.6M3.8k](/packages/illuminate-routing)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
