PHPackages                             opportus/sls-client - 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. opportus/sls-client

ActiveLibrary[API Development](/categories/api)

opportus/sls-client
===================

Colissimo Simple Label Solution (SLS) client

v1.0.0-alpha.1(6y ago)114131MITPHPPHP &gt;=5.4CI failing

Since Dec 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/opportus/sls-client)[ Packagist](https://packagist.org/packages/opportus/sls-client)[ Docs](https://github.com/opportus/sls-client)[ RSS](/packages/opportus-sls-client/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)DependenciesVersions (3)Used By (1)

A Colissimo Simple Label Solution (SLS) client.

To do
-----

[](#to-do)

- Implement cache system
- Implement unit and functional tests
- Implement benchmarks
- Implement all SLS methods
- Implement request validation based on SLS WSDL so that we economize client-server roundtrips

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

[](#installation)

### Requirements

[](#requirements)

- PHP &gt;= 7.4
- libxml PHP extension installed and enabled
- soap PHP extension installed and enabled
- composer

### Step 1 - Download and install the package

[](#step-1---download-and-install-the-package)

Open a command console, enter your project directory and execute:

```
$ composer require opportus/sls-client
```

Guide
-----

[](#guide)

A basic code example:

```
use Opportus\SlsClient\Client;

$client = Client::create();

$requestParameters = [
    'contractNumber' => '111111',
    'password'       => '1111111',
    'outputFormat'   => [
        'x'                  => '0',
        'y'                  => '0',
        'outputPrintingType' => 'PDF_A4_300dpi',
    ],
    'letter' => [
        'service' => [
            'productCode' => 'DOM',
            'depositDate' => '2019-01-01',
        ],
        'parcel' => [
            'weight' => '1',
        ],
        'sender' => [
            'address' => [
                'companyName' => 'FOO',
                'line2'       => '1 RUE FOO',
                'countryCode' => 'FR',
                'city'        => 'FOO',
                'zipCode'     => '00000',
            ],
        ],
        'addressee' => [
            'address' => [
                'companyName' => 'BAR',
                'line2'       => '1 RUE BAR',
                'countryCode' => 'FR',
                'city'        => 'BAR',
                'zipCode'     => '00000',
            ],
        ],
    ],
];

$response = $client->generateLabel($requestParameters);

$response->getMessageId();    // '0'
$response->getLabel();        //
$response->getParcelNumber(); // '6A11111111111'
```

This library is currently a *passthrough* client of the SLS service. Therefore, the [SLS documentation](https://github.com/opportus/sls-client/blob/master/specs/sls-doc-2019-03.pdf) covers pretty much everything else you need to know in order to use this library.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2389d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c6ed3ce0fc49269e52a4b9afa7f4e52b83dab499856a88f1e530df6a92ed6dc?d=identicon)[opportus](/maintainers/opportus)

---

Top Contributors

[![opportus](https://avatars.githubusercontent.com/u/11618989?v=4)](https://github.com/opportus "opportus (10 commits)")

---

Tags

SLScolissimocolissimo apicolissimo clientcolissimo api clientsimple label solutionsimple label solution apisimple label solution clientsimple label solution api clientcolissimo simple label solutioncolissimo simple label solution apicolissimo simple label solution clientcolissimo simple label solution api clientsls apisls api clientcolissimo slscolissimo sls apicolissimo sls api client

### Embed Badge

![Health badge](/badges/opportus-sls-client/health.svg)

```
[![Health](https://phpackages.com/badges/opportus-sls-client/health.svg)](https://phpackages.com/packages/opportus-sls-client)
```

###  Alternatives

[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k12](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)[hedii/colissimo-api

A php package to track Colissimo (La Poste) parcels

221.7k](/packages/hedii-colissimo-api)

PHPackages © 2026

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