PHPackages                             mohamedhekal/shipbridge-bosta - 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. mohamedhekal/shipbridge-bosta

ActiveLibrary

mohamedhekal/shipbridge-bosta
=============================

Bosta carrier driver for ShipBridge (Egypt)

v0.2.0(1mo ago)03↓75%MITPHPPHP ^8.2CI passing

Since Jul 16Pushed 1mo agoCompare

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

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

ShipBridge · Bosta
==================

[](#shipbridge--bosta)

[![CI](https://github.com/mohamedhekal/shipbridge-bosta/actions/workflows/tests.yml/badge.svg)](https://github.com/mohamedhekal/shipbridge-bosta/actions)[![License: MIT](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![Packagist](https://camo.githubusercontent.com/d5d66bc30b515058b4ac230ce5b9fb402c2028ceb26e97d1510bae04f6610bd0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f68616d656468656b616c2f736869706272696467652d626f7374612e737667)](https://packagist.org/packages/mohamedhekal/shipbridge-bosta)

**Bosta** (مصر) — driver كامل لـ [ShipBridge](https://github.com/mohamedhekal/shipbridge)
مبني على شكل الـ API الرسمي لـ Bosta Business (create / track / AWB / return / exchange).

دليل عربي مفصّل: [docs/GUIDE\_AR.md](docs/GUIDE_AR.md) · مرجع API: [docs/API.md](docs/API.md)

---

بالعربي — في ٣ خطوات
--------------------

[](#بالعربي--في-٣-خطوات)

### ١) التثبيت

[](#١-التثبيت)

```
composer require mohamedhekal/shipbridge mohamedhekal/shipbridge-bosta
```

### ٢) المفاتيح في `.env`

[](#٢-المفاتيح-في-env)

```
SHIPBRIDGE_DRIVER=bosta
BOSTA_API_KEY=your-api-key-from-bosta-dashboard
BOSTA_BASE_URL=https://app.bosta.co
# Staging: https://stg-app.bosta.co
```

> المفتاح من لوحة Bosta → **API Integration**.
> يُرسل كـ `Authorization: {api_key}` (مش Bearer).

### ٣) ابعت شحنة

[](#٣-ابعت-شحنة)

```
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('المخزن', 'شارع الصناعة ١', 'Cairo', 'EG', phone: '01011111111'),
    destination: new Address('أحمد علي', '١٢ شارع النيل', 'Giza', 'EG', phone: '01000000000'),
    parcels: [new Parcel(weightKg: 1.2, description: 'ملابس')],
    reference: 'ORD-42',
    metadata: [
        'cod' => 350,              // تحصيل عند الاستلام (جنيه)
        'city_code' => 'EG-02',    // كود مدينة Bosta (الجيزة)
        'zone' => 'الدقي',
        'building_number' => 12,
        'notes' => 'اتصل قبل التسليم',
    ],
));

echo $shipment->trackingNumber; // رقم التتبع من Bosta
```

```
ShipBridge::driver('bosta')->track($shipment->trackingNumber);
ShipBridge::driver('bosta')->label($shipment->trackingNumber); // AWB PDF (base64)
```

---

English — Quick start
---------------------

[](#english--quick-start)

```
composer require mohamedhekal/shipbridge mohamedhekal/shipbridge-bosta
```

```
SHIPBRIDGE_DRIVER=bosta
BOSTA_API_KEY=your-api-key-from-bosta-dashboard
BOSTA_BASE_URL=https://app.bosta.co
```

Bosta fields beyond the ShipBridge DTOs go in `metadata` (`cod`, `city_code`, `zone`, `district_id`, `building_number`, `type`, …).

ShipBridge methodBosta API`createShipment``POST /api/v2/deliveries?apiVersion=1` (type `10`)`track``POST /api/v2/deliveries/search``label``GET /api/v2/deliveries/mass-awb``createReturn`create delivery type `25` (CRP)`createExchange`create delivery type `30`Delivery types
--------------

[](#delivery-types)

CodeMeaning10SEND / Forward package (default)15Cash collection20Return to origin25Customer return pickup30ExchangeTesting
-------

[](#testing)

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

---

License
-------

[](#license)

MIT © Mohamed Hekal

---

 [![ShipBridge · bosta](docs/assets/banner.png)](docs/assets/banner.png)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance90

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

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

3

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 (2 commits)")

---

Tags

courierlaravelphpshipbridgeshippinglaravelshippingcouriercarriercodEgyptbostashipbridge

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

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

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

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

Rapidly build MCP servers for your Laravel applications.

80732.6M270](/packages/laravel-mcp)[api-platform/laravel

API Platform support for Laravel

58190.1k22](/packages/api-platform-laravel)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.5k](/packages/forjedio-inertia-table)

PHPackages © 2026

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