PHPackages                             ernadoo/mondial-relay-bundle - 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. [API Development](/categories/api)
4. /
5. ernadoo/mondial-relay-bundle

ActiveSymfony-bundle[API Development](/categories/api)

ernadoo/mondial-relay-bundle
============================

Mondial Relay Bundle for Symfony 6.4 / 7.x

v3.0.0(4w ago)21581MITPHPPHP ^8.2CI failing

Since Aug 29Pushed 4w ago1 watchersCompare

[ Source](https://github.com/ErnadoO/mondial-relay-bundle)[ Packagist](https://packagist.org/packages/ernadoo/mondial-relay-bundle)[ GitHub Sponsors](https://github.com/ernadoo)[ RSS](/packages/ernadoo-mondial-relay-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (10)Dependencies (9)Versions (11)Used By (0)

ernadoo/mondial-relay-bundle
============================

[](#ernadoomondial-relay-bundle)

Symfony bundle for the [ernadoo/mondial-relay](https://github.com/ernadoo/mondial-relay) PHP SDK.

- Autowiring of `MondialRelayClientInterface`
- Symfony Profiler integration (call log, duration)
- Twig helper for the relay point selection widget

Requirements
------------

[](#requirements)

- PHP 8.2+
- Symfony 6.4 or 7.x

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

[](#installation)

```
composer require ernadoo/mondial-relay-bundle
```

If Symfony Flex is enabled the bundle registers automatically. Otherwise add it to `config/bundles.php`:

```
return [
    // ...
    Ernadoo\MondialRelayBundle\ErnadooMondialRelayBundle::class => ['all' => true],
];
```

Configuration
-------------

[](#configuration)

Create `config/packages/ernadoo_mondial_relay.yaml`:

```
ernadoo_mondial_relay:
    credentials:
        login:       '%env(MR_LOGIN)%'
        password:    '%env(MR_PASSWORD)%'
        customer_id: '%env(MR_CUSTOMER_ID)%'
        secret_key:  '%env(MR_SECRET_KEY)%'
    sandbox: false   # set to true (or '%kernel.debug%') for the MR sandbox
```

Add the environment variables to your `.env`:

```
MR_LOGIN=your-login
MR_PASSWORD=your-password
MR_CUSTOMER_ID=BDTEST
MR_SECRET_KEY=your-secret-key
```

Usage
-----

[](#usage)

Inject `MondialRelayClientInterface` anywhere in your Symfony application:

```
use Ernadoo\MondialRelay\Contract\MondialRelayClientInterface;
use Ernadoo\MondialRelay\Shipment\Address;
use Ernadoo\MondialRelay\Shipment\Parcel;
use Ernadoo\MondialRelay\Shipment\ShipmentRequest;

class LabelController extends AbstractController
{
    public function __construct(
        private readonly MondialRelayClientInterface $mondialRelay,
    ) {}

    public function print(): Response
    {
        $response = $this->mondialRelay->createShipment(new ShipmentRequest(
            sender:    new Address('FR', '59510', 'Hem', '4 Av. Pinay', 'Erwan', 'Nader'),
            recipient: new Address('FR', '75001', 'Paris', '1 Rue de la Paix', 'Jane', 'Doe'),
            parcels:   [new Parcel(500)],
        ));

        return $this->redirect($response->labelOutput); // download PDF
    }
}
```

Twig widget
-----------

[](#twig-widget)

```
{# Renders the Mondial Relay relay-point selection widget #}
{{ mondial_relay_widget('FR', '75001') }}

{# Just the customer ID, for your own JS integration #}
{{ mondial_relay_customer_id() }}
```

Documentation
-------------

[](#documentation)

- [Installation &amp; configuration](docs/01-installation.md)
- [Usage in controllers &amp; services](docs/02-usage.md)
- [Twig widget](docs/03-twig.md)

Tests
-----

[](#tests)

```
composer install
vendor/bin/phpunit
```

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance94

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity77

Established project with proven stability

 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 ~269 days

Recently: every ~539 days

Total

10

Last Release

28d ago

Major Versions

1.0.6 → 2.0.02020-08-29

2.0.2 → v3.0.02026-04-19

PHP version history (3 changes)1.0PHP ^7.1

2.0.1PHP ^7.1 || ^8.0

v3.0.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![ErnadoO](https://avatars.githubusercontent.com/u/6375756?v=4)](https://github.com/ErnadoO "ErnadoO (27 commits)")

---

Tags

symfony-bundlesymfonybundleshippingmondial-relay

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ernadoo-mondial-relay-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ernadoo-mondial-relay-bundle/health.svg)](https://phpackages.com/packages/ernadoo-mondial-relay-bundle)
```

###  Alternatives

[stfalcon-studio/api-bundle

Base classes and helper services to build API application via Symfony.

1032.1k](/packages/stfalcon-studio-api-bundle)[ufo-tech/json-rpc-sdk-bundle

The Symfony bundle for simple usage Json-RPC api with dynamic SDK

172.5k](/packages/ufo-tech-json-rpc-sdk-bundle)

PHPackages © 2026

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