PHPackages                             adjemin/smartlivraison-php - 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. adjemin/smartlivraison-php

ActiveLibrary[API Development](/categories/api)

adjemin/smartlivraison-php
==========================

Smart Livraison PHP Library

1.0.4(5y ago)241MITPHPPHP &gt;=5.6.0

Since Jun 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/adjemin/smartlivraison-php)[ Packagist](https://packagist.org/packages/adjemin/smartlivraison-php)[ Docs](https://github.com/adjemin/smartlivraison-php)[ RSS](/packages/adjemin-smartlivraison-php/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Smart Livraison PHP
===================

[](#smart-livraison-php)

[![Latest Stable Version](https://camo.githubusercontent.com/2e246b954ca5dc2d5931d67b62002ca2670245ffeb43b520259acaecf7ab7181/68747470733a2f2f706f7365722e707567782e6f72672f61646a656d696e2f736d6172746c6976726169736f6e2d7068702f76)](//packagist.org/packages/adjemin/smartlivraison-php) [![Total Downloads](https://camo.githubusercontent.com/35e697cc9d643fffffb8a1697f09de3d375eda35a2f349aee50d65240bf85b40/68747470733a2f2f706f7365722e707567782e6f72672f61646a656d696e2f736d6172746c6976726169736f6e2d7068702f646f776e6c6f616473)](//packagist.org/packages/adjemin/smartlivraison-php) [![Latest Unstable Version](https://camo.githubusercontent.com/731c26d76f94b5c3e2d325a9848609d5f385269da7879b6936ee160d52801f71/68747470733a2f2f706f7365722e707567782e6f72672f61646a656d696e2f736d6172746c6976726169736f6e2d7068702f762f756e737461626c65)](//packagist.org/packages/adjemin/smartlivraison-php) [![License](https://camo.githubusercontent.com/4ded25dcb663746b8d979cc28f4cd30d8ddb943d6f576952e9cc188dca8892d1/68747470733a2f2f706f7365722e707567782e6f72672f61646a656d696e2f736d6172746c6976726169736f6e2d7068702f6c6963656e7365)](//packagist.org/packages/adjemin/smartlivraison-php)

The Smart Livraison PHP library provides convenient access to the Smart Livraison API from applications written in the PHP language. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses which makes it compatible with a wide range of versions of the Smart Livraison API

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

[](#requirements)

PHP 5.6.0 and later.

Composer
--------

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
composer require adjemin/smartlivraison-php
```

Getting Started
---------------

[](#getting-started)

Simple usage looks like:

### Create Merchant Task and Assign to Delivery service

[](#create-merchant-task-and-assign-to-delivery-service)

```
$customer_name = "Ange Bagui";
$customer_phone = "+22501000000";
$customer_email = "";
$location_name = "Immeuble Maiko, Rue L84, 8ᵉ tranche, Caféier, Cocody, Abidjan, 28, Côte d'Ivoire";
$location_latitude = 5.396215700000001;
$location_longitude = -3.9768630282901785;
$order_id = "1ebf79e3-da47-4f73-aefc-9557afa22e33";
$order_description = "Savon 200g Catégorie: Beauté Quantité: 1";
$order_price = "2000";
$currency_code = "XOF";
$has_pickup = true;
$delivery_fees = "1500";

$job_datetime = "2020-07-15 11:35:51";

$images = ["https://i.imgur.com/UbFukAq.jpg"];
$description = "Ramassage ";

$pickup = SmartLivraison::paramJob(
    $customer_name,
    $customer_phone,
    $customer_email,
    $location_name,
    $location_latitude,
    $location_longitude,
    $order_id,
    $order_description,
    $order_price,
    $currency_code,
    $has_pickup,
    $delivery_fees,
    $job_datetime ,
    $images,
    $description
);

$customer_name = "Ange Bagui";
$customer_phone = "+22501000000";
$customer_email = "";
$location_name = "Pharmacie du Bonheur, Rue I168, Riviéra Palmeraie, Les Palmeraies, Palmeraie, Cocody, Abidjan, BP 51 CIDEX 3 ABIDJAN, Côte d'Ivoire";
$location_latitude = 5.3695041;
$location_longitude = -3.9590591;
$order_id = "1ebf79e3-da47-4f73-aefc-9557afa22e33";
$order_description = "Savon 200g Catégorie: Beauté Quantité: 1";
$order_price = "2000";
$currency_code = "XOF";
$has_pickup = false;
$delivery_fees = "1500";
$job_delivery_datetime =  "2020-07-15 13:35:51";
$images = ["https://i.imgur.com/UbFukAq.jpg"];
$description = "Livraison ";

$delivery = SmartLivraison::paramJob(
    $customer_name,
    $customer_phone,
    $customer_email,
    $location_name,
    $location_latitude,
    $location_longitude,
    $order_id,
    $order_description,
    $order_price,
    $currency_code,
    $has_pickup,
    $delivery_fees,
    $job_delivery_datetime,
    $images,
    $description
);

 $client_id = '11211111'; //Your CLIENT ID
 $client_secret = '10997210-b096-4dd7-b834-837856e4fe25'; //Your CLIENT SECRET
 $smartLivraison = new SmartLivraison($client_id, $client_secret);

 $merchant_id = "21121"; //Your merchant ID
 $merchant_notification_url = "http://example.com/sl_notify"; //Your merchant notification url

 $delivery_service_username = "adjemin"; // The username of the delivery service in Smart Livraison
 $customer_payment_method_code = "cash"; //cash or online
 $customer_paid = false; // if true so the customer will not paid at the delivery

/** var array $result */
$result = $smartLivraison->merchantCreateTask(
                            $merchant_id,
                            $pickup,
                            $delivery,
                            $delivery_service_username,
                            $customer_payment_method_code,
                            $customer_paid,
                            $merchant_notification_url
                        );
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Every ~3 days

Total

3

Last Release

2145d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c888a312e8023e6a46a886ff79ccbbe87c40eb59055e278ddb225beb0ed5e48?d=identicon)[adjemin](/maintainers/adjemin)

---

Top Contributors

[![angebagui](https://avatars.githubusercontent.com/u/5214752?v=4)](https://github.com/angebagui "angebagui (41 commits)")

---

Tags

adjeminphpsmartlivraisonintegrationshippingsmart livraison

### Embed Badge

![Health badge](/badges/adjemin-smartlivraison-php/health.svg)

```
[![Health](https://phpackages.com/badges/adjemin-smartlivraison-php/health.svg)](https://phpackages.com/packages/adjemin-smartlivraison-php)
```

###  Alternatives

[gabrielbull/ups-api

PHP UPS API

4642.4M10](/packages/gabrielbull-ups-api)[easypost/easypost-php

EasyPost Shipping API Client Library for PHP

1753.1M5](/packages/easypost-easypost-php)[shippo/shippo-php

A PHP library for connecting with multiple carriers (FedEx, UPS, USPS) using Shippo.

1711.8M2](/packages/shippo-shippo-php)[wordpress/mcp-adapter

Adapter for Abilities API, letting WordPress abilities to be used as MCP tools, resources or prompts

74855.8k1](/packages/wordpress-mcp-adapter)[firstred/postnl-api-php

PostNL REST API PHP Bindings

27610.2k1](/packages/firstred-postnl-api-php)[octw/aramex

A Library to integrate with Aramex APIs

2925.2k](/packages/octw-aramex)

PHPackages © 2026

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