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

ActiveLibrary

mohamedhekal/shipbridge-fedex
=============================

FedEx carrier driver for ShipBridge (Global)

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

Since Jul 16Pushed 1mo agoCompare

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

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

ShipBridge · FedEx
==================

[](#shipbridge--fedex)

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

**FedEx** shipping driver for [ShipBridge](https://github.com/mohamedhekal/shipbridge) · Region: **Global** / **عالمي**

Real FedEx REST API: `https://apis.fedex.com` (sandbox: `https://apis-sandbox.fedex.com`)

---

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

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

### ١) ثبّت الحزمتين

[](#١-ثبّت-الحزمتين)

```
composer require mohamedhekal/shipbridge mohamedhekal/shipbridge-fedex
```

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

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

```
SHIPBRIDGE_DRIVER=fedex
FEDEX_BASE_URL=https://apis-sandbox.fedex.com
FEDEX_CLIENT_ID=your-api-key
FEDEX_CLIENT_SECRET=your-secret-key
FEDEX_ACCOUNT_NUMBER=123456789
```

> التفاصيل في `config/fedex.php` و [`docs/GUIDE_AR.md`](docs/GUIDE_AR.md).

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

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

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

$shipment = ShipBridge::driver('fedex')->createShipment(new CreateShipmentRequest(
    origin: new Address('المخزن', 'شارع ١', 'القاهرة', 'EG', phone: '01011111111', postalCode: '11511'),
    destination: new Address('العميل', 'شارع النيل', 'الجيزة', 'EG', phone: '01000000000', postalCode: '12613'),
    parcels: [new Parcel(weightKg: 1.2)],
    reference: 'ORD-42',
));

echo $shipment->trackingNumber;

// PDF label (base64) is in create response raw — persist it yourself:
$pdf = $shipment->raw['output']['transactionShipments'][0]['pieceResponses'][0]['packageDocuments'][0]['encodedLabel'] ?? null;
```

تتبع / رابط تتبع:

```
ShipBridge::driver('fedex')->track($shipment->trackingNumber);
ShipBridge::driver('fedex')->label($shipment->trackingNumber); // FedEx public tracking URL
```

---

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

[](#english--quick-start)

```
composer require mohamedhekal/shipbridge mohamedhekal/shipbridge-fedex
```

```
SHIPBRIDGE_DRIVER=fedex
FEDEX_BASE_URL=https://apis-sandbox.fedex.com
FEDEX_CLIENT_ID=...
FEDEX_CLIENT_SECRET=...
FEDEX_ACCOUNT_NUMBER=...
FEDEX_TOKEN=          # optional pre-issued bearer token
```

```
ShipBridge::driver('fedex')->createShipment(...);  // POST /ship/v1/shipments
ShipBridge::driver('fedex')->track('7946...');    // POST /track/v1/trackingnumbers
ShipBridge::driver('fedex')->label('7946...');   // public tracking URL (PDF from create raw)
```

See [`docs/API.md`](docs/API.md) for OAuth, payload shape, COD, and label behavior.

How it fits
-----------

[](#how-it-fits)

```
Your Laravel app
      │
      ▼
 ShipBridge  (one API for all carriers)
      │
      ▼
 shipbridge-fedex  ← this package (FedEx REST)

```

Testing
-------

[](#testing)

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

---

License
-------

[](#license)

MIT © Mohamed Hekal

---

 [![ShipBridge · fedex](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

Community7

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

courierlaravelphpshipbridgeshippinglaravelexpressglobalshippingFedExcarriershipbridge

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

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

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

###  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)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

818355.4k3](/packages/defstudio-telegraph)[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)
