PHPackages                             developifynet/leopardscod-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. developifynet/leopardscod-php

ActiveLibrary[API Development](/categories/api)

developifynet/leopardscod-php
=============================

Leopards Courier COD (Cash on Delivery) API Wrapper for PHP

v2.0(2y ago)103594MITPHPPHP &gt;=5.4.0

Since Aug 1Pushed 2y ago2 watchersCompare

[ Source](https://github.com/developifynet/leopardscod-php)[ Packagist](https://packagist.org/packages/developifynet/leopardscod-php)[ RSS](/packages/developifynet-leopardscod-php/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (4)Versions (3)Used By (0)

Leopards Courier COD (Cash on Delivery) API Wrapper for PHP
===========================================================

[](#leopards-courier-cod-cash-on-delivery-api-wrapper-for-php)

[![Build Status](https://camo.githubusercontent.com/c59043e0b28eab034f19dabc49c9222c43e3fbe5e0c6bc2837a5c0086132a211/68747470733a2f2f7472617669732d63692e6f72672f6c61726176656c2f6672616d65776f726b2e737667)](https://travis-ci.org/developifynet/leopardscod-php)[![Total Downloads](https://camo.githubusercontent.com/6d0715518608484398662f4f19775cb37503557660cfaf6eac9d62680df7496e/68747470733a2f2f706f7365722e707567782e6f72672f646576656c6f706966796e65742f6c656f7061726473636f642d7068702f642f746f74616c2e737667)](https://packagist.org/packages/developifynet/leopardscod-php)[![Latest Stable Version](https://camo.githubusercontent.com/794c1c4997a78afd86d781f6bed9cefa4b3911ad1bfd943f98a682b82436173d/68747470733a2f2f706f7365722e707567782e6f72672f646576656c6f706966796e65742f6c656f7061726473636f642d7068702f762f737461626c652e737667)](https://packagist.org/packages/developifynet/leopardscod-php)[![License](https://camo.githubusercontent.com/87dcb1a2662e4f0b3a424d0161b73739e18cd98572d9010a0c498f0504b7dd0b/68747470733a2f2f706f7365722e707567782e6f72672f646576656c6f706966796e65742f6c656f7061726473636f642d7068702f6c6963656e73652e737667)](https://packagist.org/packages/developifynet/leopardscod-php)

This composer package offers quick booking packets via APIs on Leopards COD (Cash on Delivery) for your Laravel applications.

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

[](#installation)

Begin by pulling in the package through Composer.

```
composer require developifynet/leopardscod-php
```

Laravel Framework Usage
-----------------------

[](#laravel-framework-usage)

Within your controllers, you can call LeopardsCOD facade and can send perform different operations.

### Set Credentials

[](#set-credentials)

```
use \Developifynet\LeopardsCOD\LeopardsCOD;
public function index()
{
    LeopardsCOD::setCredentials(array(
        'api_key' => '',              // API Key provided by LCS
        'api_password' => '',    // API Password provided by LCS
        'enable_test_mode' => true,                 // [Optional] default value is 'false', true|false to set mode test or live
    ));
}
```

or setting up with data. See below endpoints where credentials are porvided within function data

### Get All Cities

[](#get-all-cities)

```
use \Developifynet\LeopardsCOD\LeopardsCOD;
public function index()
{
    $response = LeopardsCOD::setCredentials(array(
        'api_key' => '',              // API Key provided by LCS
        'api_password' => '',    // API Password provided by LCS
        'enable_test_mode' => true,                 // [Optional] default value is 'false', true|false to set mode test or live
    ))->getAllCities();
}
```

### Book a Packet

[](#book-a-packet)

```
use \Developifynet\LeopardsCOD\LeopardsCOD;
public function index()
{
    $response = LeopardsCOD::setCredentials(array(
        'api_key' => '',              // API Key provided by LCS
        'api_password' => '',    // API Password provided by LCS
        'enable_test_mode' => true,                 // [Optional] default value is 'false', true|false to set mode test or live
    ))->bookPacket(array(
        'booked_packet_weight' => '200',
        'booked_packet_vol_weight_w' => '',
        'booked_packet_vol_weight_h' => '',
        'booked_packet_vol_weight_l' => '',
        'booked_packet_no_piece' => '1',
        'booked_packet_collect_amount' => '1000',
        'booked_packet_order_id' => '1001',
        'origin_city' => 'string',                  /** Params: 'self' or 'integer_value' e.g. 'origin_city' => 'self' or 'origin_city' => 789 (where 789 is Lahore ID)
                                                     * If 'self' is used then Your City ID will be used.
                                                     * 'integer_value' provide integer value (for integer values read 'Get All Cities' api documentation)
                                                     */

        'destination_city' => 'string',             /** Params: 'self' or 'integer_value' e.g. 'destination_city' => 'self' or 'destination_city' => 789 (where 789 is Lahore ID)
                                                     * If 'self' is used then Your City ID will be used.
                                                     * 'integer_value' provide integer value (for integer values read 'Get All Cities' api documentation)
                                                     */
        // Shipper Information
        'shipment_name_eng' => 'self',
        'shipment_email' => 'self',
        'shipment_phone' => 'self',
        'shipment_address' => 'self',
        // Consingee Information
        'consignment_name_eng' => 'John Doe',
        'consignment_email' => 'johndoe@example.com',
        'consignment_phone' => '+923330000000',
        'consignment_address' => 'Test Address is used here',
        'special_instructions' => 'n/a',
     ));
}
```

### Track Packet(s)

[](#track-packets)

```
use \Developifynet\LeopardsCOD\LeopardsCOD;
public function index()
{
    $response = LeopardsCOD::setCredentials(array(
        'api_key' => '',              // API Key provided by LCS
        'api_password' => '',    // API Password provided by LCS
        'enable_test_mode' => true,                 // [Optional] default value is 'false', true|false to set mode test or live
    ))->trackPacket(array(
        'track_numbers' => 'LEXXXXXXXX',            // E.g. 'XXYYYYYYYY' OR 'XXYYYYYYYY,XXYYYYYYYY,XXYYYYYY' 10 Digits each number
     ));
}
```

Other Usage
-----------

[](#other-usage)

Within your controllers, you can call LeopardsCODClient Object and call approperiate functions for your need.

You can set credentials in various ways. See below

### Set Credentials

[](#set-credentials-1)

```
use \Developifynet\LeopardsCOD\LeopardsCODClient;
public function index()
{
    $leopards = new LeopardsCODClient(array(
        'api_key' => '',              // API Key provided by LCS
        'api_password' => '',    // API Password provided by LCS
        'enable_test_mode' => true,                 // [Optional] default value is 'false', true|false to set mode test or live
    ));
}
```

or using 'setCredentials'

```
use \Developifynet\LeopardsCOD\LeopardsCODClient;
public function index()
{
    $leopards = new LeopardsCODClient();

    $leopards->setCredentials(array(
        'api_key' => '',              // API Key provided by LCS
        'api_password' => '',    // API Password provided by LCS
        'enable_test_mode' => true,                 // [Optional] default value is 'false', true|false to set mode test or live
    ));
}
```

or setting up with data. See below endpoints where credentials are porvided within function data

### Get All Cities

[](#get-all-cities-1)

```
use \Developifynet\LeopardsCOD\LeopardsCODClient;
public function index()
{
    $leopards = new LeopardsCODClient();

    $response = $leopards->getAllCities(array(
        'api_key' => '',              // API Key provided by LCS
        'api_password' => '',    // API Password provided by LCS
        'enable_test_mode' => true,                 // [Optional] default value is 'false', true|false to set mode test or live
    ));
}
```

### Book a Packet

[](#book-a-packet-1)

```
use \Developifynet\LeopardsCOD\LeopardsCODClient;
public function index()
{
    $leopards = new LeopardsCODClient();

    $response = $leopards->bookPacket(array(
        'api_key' => '',              // API Key provided by LCS
        'api_password' => '',    // API Password provided by LCS
        'enable_test_mode' => true,                 // [Optional] default value is 'false', true|false to set mode test or live
        'booked_packet_weight' => '200',
        'booked_packet_vol_weight_w' => '',
        'booked_packet_vol_weight_h' => '',
        'booked_packet_vol_weight_l' => '',
        'booked_packet_no_piece' => '1',
        'booked_packet_collect_amount' => '1000',
        'booked_packet_order_id' => '1001',
        'origin_city' => 'string',                  /** Params: 'self' or 'integer_value' e.g. 'origin_city' => 'self' or 'origin_city' => 789 (where 789 is Lahore ID)
                                                     * If 'self' is used then Your City ID will be used.
                                                     * 'integer_value' provide integer value (for integer values read 'Get All Cities' api documentation)
                                                     */

        'destination_city' => 'string',             /** Params: 'self' or 'integer_value' e.g. 'destination_city' => 'self' or 'destination_city' => 789 (where 789 is Lahore ID)
                                                     * If 'self' is used then Your City ID will be used.
                                                     * 'integer_value' provide integer value (for integer values read 'Get All Cities' api documentation)
                                                     */
        // Shipper Information
        'shipment_name_eng' => 'self',
        'shipment_email' => 'self',
        'shipment_phone' => 'self',
        'shipment_address' => 'self',
        // Consingee Information
        'consignment_name_eng' => 'John Doe',
        'consignment_email' => 'johndoe@example.com',
        'consignment_phone' => '+923330000000',
        'consignment_address' => 'Test Address is used here',
        'special_instructions' => 'n/a',
     ));
}
```

### Track Packet(s)

[](#track-packets-1)

```
use \Developifynet\LeopardsCOD\LeopardsCODClient;
public function index()
{
    $leopards = new LeopardsCODClient();

    $response = $leopards->trackPacket(array(
        'api_key' => '',              // API Key provided by LCS
        'api_password' => '',    // API Password provided by LCS
        'enable_test_mode' => true,                 // [Optional] default value is 'false', true|false to set mode test or live
        'track_numbers' => 'LEXXXXXXXX',            // E.g. 'XXYYYYYYYY' OR 'XXYYYYYYYY,XXYYYYYYYY,XXYYYYYY' 10 Digits each number
     ));
}
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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 ~1611 days

Total

2

Last Release

869d ago

Major Versions

v1.0.0 → v2.02023-12-29

### Community

Maintainers

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

---

Top Contributors

[![efficientbit](https://avatars.githubusercontent.com/u/3807256?v=4)](https://github.com/efficientbit "efficientbit (3 commits)")[![DevelopifySNS](https://avatars.githubusercontent.com/u/35734664?v=4)](https://github.com/DevelopifySNS "DevelopifySNS (2 commits)")

---

Tags

apicourierleopardsleopards-codleopards-cod-phpleopards-courierleopards-courier-phpleopards-phpleopardscodleopardscourierleopardscourierphppackagephpsdksdk-phpphpapisdkpackagesdk-phpleopardsleopardscourierleopardscodleopards-courierleopards-phpleopards-courier-phpleopardscourierphpleopards-codleopards-cod-php

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/developifynet-leopardscod-php/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)[fabian-beiner/todoist-php-api-library

A PHP client library that provides a native interface to the official Todoist REST API.

4810.8k](/packages/fabian-beiner-todoist-php-api-library)[musheabdulhakim/gohighlevel-php

php sdk for gohighlevel api

151.1k](/packages/musheabdulhakim-gohighlevel-php)

PHPackages © 2026

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