PHPackages                             humantocomputer/mondial-relay-label - 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. humantocomputer/mondial-relay-label

ActiveLibrary[API Development](/categories/api)

humantocomputer/mondial-relay-label
===================================

Generate shipping label from Mondial Relay API

011PHP

Since Apr 7Pushed 1y agoCompare

[ Source](https://github.com/humantocomputer/MondialRelayLabel)[ Packagist](https://packagist.org/packages/humantocomputer/mondial-relay-label)[ RSS](/packages/humantocomputer-mondial-relay-label/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

MondialRelayLabel
=================

[](#mondialrelaylabel)

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

[](#installation)

Pour installer le package, utilisez Composer :

```
composer require humantocomputer/mondial-relay-label
```

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

[](#configuration)

Start by registering the package's the service provider

```
// config/app.php

'providers' => [
    ...
    Humantocomputer\MondialRelayLabel\MondialRelayLabelServiceProvider::class,
],
```

Après l'installation, publiez le fichier de configuration avec la commande suivante :

```
php artisan vendor:publish --provider="HumanToComputer\MondialRelayLabel\MondialRelayLabelServiceProvider"
```

Cela créera un fichier de configuration mondial-relay-label.php dans le répertoire config.

Remplissez les informations d'identification de Mondial Relay dans le fichier de configuration.

```
## Utilisation

Pour générer une étiquette, vous pouvez utiliser la méthode `generate` de la classe `MondialRelayLabel` :

```php
use HumanToComputer\MondialRelayLabel;

// Créez une instance de MondialRelayLabel
$mondialRelay = new MondialRelayLabel();

$shipmentData = [
            'OrderNo' => 'Order number (optional)',
            'CustomerNo' => 'Customer number (optional)',
            'ParcelCount' => 'Nombre de colis (optional)',
            'DeliveryMode__Mode' => '24R', // CCC, CDR, CDS, REL, LCC, HOM, HOC, 24R; 24L,  XOH
            'DeliveryMode__Location' => '(optional)',
            'CollectionMode__Mode' => 'CCC', // CCC, CDR, CDS, REL, LCC, HOM, HOC, 24R; 24L,  XOH
            'CollectionMode__Location' => '(optional)',
            'Parcels' => [
                'Parcel' => [
                    'Content' => 'Parcel content descirption (optional)',
                    'Weight__Value' => 'required|numeric|min:10',
                    'Weight__Unit' => 'gr', //required gr mandatory
                ],
                'DeliveryInstruction' => '(optional)',
            ],
            'Sender' => [
                'Address' => [
                    'Title' => 'required|string',
                    'Firstname' => 'required|string',
                    'Lastname' => 'required|string',
                    'Streetname' => 'required|string',
                    'HouseNo' => '(optional)',
                    'CountryCode' => 'required|string',
                    'PostCode' => 'required|string',
                    'City' => 'required|string',
                    'AddressAdd1' => '(optional) Name. Do not fill it if Firstname/Lastname are
filled',
                    'AddressAdd2' => '(optional)',
                    'AddressAdd3' => '(optional)',
                    'PhoneNo' => '(optional)',
                    'MobileNo' => '(optional)',
                    'Email' => '(optional)',
                ],
            ],
            'Recipient' => [
                'Address' => [
                    'Title' => 'required|string',
                    'Firstname' => 'required|string',
                    'Lastname' => 'required|string',
                    'Streetname' => 'required|string',
                    'HouseNo' => '(optional)',
                    'CountryCode' => 'required|string',
                    'PostCode' => 'required|string',
                    'City' => 'required|string',
                    'AddressAdd1' => '(optional) Name. Do not fill it if Firstname/Lastname are
filled',
                    'AddressAdd2' => '(optional)',
                    'AddressAdd3' => '(optional)',
                    'PhoneNo' => '(optional)',
                    'MobileNo' => '(optional)',
                    'Email' => '(optional)',
                ],
            ],
        ];

 // Get urls of the labels
$urls = $mondialRelay->generateLabels($shipmentData);
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity15

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.

### Community

Maintainers

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

---

Top Contributors

[![YohannHTC](https://avatars.githubusercontent.com/u/3177431?v=4)](https://github.com/YohannHTC "YohannHTC (13 commits)")

### Embed Badge

![Health badge](/badges/humantocomputer-mondial-relay-label/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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