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 6d 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

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity39

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

Unknown

Total

1

Last Release

2344d 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

[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/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)

PHPackages © 2026

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