{"id":21316068,"url":"https://github.com/developifynet/leopardscod-php","last_synced_at":"2025-06-13T21:06:26.148Z","repository":{"id":56966568,"uuid":"199611228","full_name":"developifynet/leopardscod-php","owner":"developifynet","description":"Leopards Courier COD (Cash on Delivery) API Wrapper for PHP","archived":false,"fork":false,"pushed_at":"2023-12-29T12:55:53.000Z","size":9,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-28T02:06:25.864Z","etag":null,"topics":["api","courier","leopards","leopards-cod","leopards-cod-php","leopards-courier","leopards-courier-php","leopards-php","leopardscod","leopardscourier","leopardscourierphp","package","php","sdk","sdk-php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developifynet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-30T08:39:54.000Z","updated_at":"2025-04-27T17:27:44.000Z","dependencies_parsed_at":"2024-11-21T18:33:00.700Z","dependency_job_id":"95e03ae0-d34f-4461-b273-2719e3a39314","html_url":"https://github.com/developifynet/leopardscod-php","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.5,"last_synced_commit":"78d53b0a37600891bda1a3354dbf45585667fa3c"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/developifynet/leopardscod-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developifynet%2Fleopardscod-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developifynet%2Fleopardscod-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developifynet%2Fleopardscod-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developifynet%2Fleopardscod-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developifynet","download_url":"https://codeload.github.com/developifynet/leopardscod-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developifynet%2Fleopardscod-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259719723,"owners_count":22901241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","courier","leopards","leopards-cod","leopards-cod-php","leopards-courier","leopards-courier-php","leopards-php","leopardscod","leopardscourier","leopardscourierphp","package","php","sdk","sdk-php"],"created_at":"2024-11-21T18:29:32.505Z","updated_at":"2025-06-13T21:06:26.112Z","avatar_url":"https://github.com/developifynet.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Leopards Courier COD (Cash on Delivery) API Wrapper for PHP\n\n\u003ca href=\"https://travis-ci.org/developifynet/leopardscod-php\"\u003e\u003cimg src=\"https://travis-ci.org/laravel/framework.svg\" alt=\"Build Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/developifynet/leopardscod-php\"\u003e\u003cimg src=\"https://poser.pugx.org/developifynet/leopardscod-php/d/total.svg\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/developifynet/leopardscod-php\"\u003e\u003cimg src=\"https://poser.pugx.org/developifynet/leopardscod-php/v/stable.svg\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/developifynet/leopardscod-php\"\u003e\u003cimg src=\"https://poser.pugx.org/developifynet/leopardscod-php/license.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\nThis composer package offers quick booking packets via APIs on Leopards COD (Cash on Delivery) for your Laravel applications.\n\n## Installation\n\nBegin by pulling in the package through Composer.\n\n```bash\ncomposer require developifynet/leopardscod-php\n```\n\n## Laravel Framework Usage\n\nWithin your controllers, you can call LeopardsCOD facade and can send perform different operations.\n\n### Set Credentials\n\n```php\nuse \\Developifynet\\LeopardsCOD\\LeopardsCOD;\npublic function index()\n{\n    LeopardsCOD::setCredentials(array(\n        'api_key' =\u003e '\u003cyour_api_key\u003e',              // API Key provided by LCS\n        'api_password' =\u003e '\u003cyour_api_password\u003e',    // API Password provided by LCS\n        'enable_test_mode' =\u003e true,                 // [Optional] default value is 'false', true|false to set mode test or live\n    ));\n}\n```\n\nor setting up with data. See below endpoints where credentials are porvided within function data\n\n\n### Get All Cities\n\n```php\nuse \\Developifynet\\LeopardsCOD\\LeopardsCOD;\npublic function index()\n{\n    $response = LeopardsCOD::setCredentials(array(\n        'api_key' =\u003e '\u003cyour_api_key\u003e',              // API Key provided by LCS\n        'api_password' =\u003e '\u003cyour_api_password\u003e',    // API Password provided by LCS\n        'enable_test_mode' =\u003e true,                 // [Optional] default value is 'false', true|false to set mode test or live\n    ))-\u003egetAllCities();\n}\n```\n\n### Book a Packet\n\n```php\nuse \\Developifynet\\LeopardsCOD\\LeopardsCOD;\npublic function index()\n{\n    $response = LeopardsCOD::setCredentials(array(\n        'api_key' =\u003e '\u003cyour_api_key\u003e',              // API Key provided by LCS\n        'api_password' =\u003e '\u003cyour_api_password\u003e',    // API Password provided by LCS\n        'enable_test_mode' =\u003e true,                 // [Optional] default value is 'false', true|false to set mode test or live\n    ))-\u003ebookPacket(array(\n        'booked_packet_weight' =\u003e '200',\n        'booked_packet_vol_weight_w' =\u003e '',\n        'booked_packet_vol_weight_h' =\u003e '',\n        'booked_packet_vol_weight_l' =\u003e '',\n        'booked_packet_no_piece' =\u003e '1',\n        'booked_packet_collect_amount' =\u003e '1000',\n        'booked_packet_order_id' =\u003e '1001',\n        'origin_city' =\u003e 'string',                  /** Params: 'self' or 'integer_value' e.g. 'origin_city' =\u003e 'self' or 'origin_city' =\u003e 789 (where 789 is Lahore ID)\n                                                     * If 'self' is used then Your City ID will be used.\n                                                     * 'integer_value' provide integer value (for integer values read 'Get All Cities' api documentation)\n                                                     */\n            \n        'destination_city' =\u003e 'string',             /** Params: 'self' or 'integer_value' e.g. 'destination_city' =\u003e 'self' or 'destination_city' =\u003e 789 (where 789 is Lahore ID)\n                                                     * If 'self' is used then Your City ID will be used.\n                                                     * 'integer_value' provide integer value (for integer values read 'Get All Cities' api documentation) \n                                                     */\n        // Shipper Information\n        'shipment_name_eng' =\u003e 'self',\n        'shipment_email' =\u003e 'self',\n        'shipment_phone' =\u003e 'self',\n        'shipment_address' =\u003e 'self',\n        // Consingee Information\n        'consignment_name_eng' =\u003e 'John Doe',\n        'consignment_email' =\u003e 'johndoe@example.com',\n        'consignment_phone' =\u003e '+923330000000',\n        'consignment_address' =\u003e 'Test Address is used here',\n        'special_instructions' =\u003e 'n/a',\n     ));\n}\n```\n\n### Track Packet(s)\n\n```php\nuse \\Developifynet\\LeopardsCOD\\LeopardsCOD;\npublic function index()\n{\n    $response = LeopardsCOD::setCredentials(array(\n        'api_key' =\u003e '\u003cyour_api_key\u003e',              // API Key provided by LCS\n        'api_password' =\u003e '\u003cyour_api_password\u003e',    // API Password provided by LCS\n        'enable_test_mode' =\u003e true,                 // [Optional] default value is 'false', true|false to set mode test or live\n    ))-\u003etrackPacket(array(\n        'track_numbers' =\u003e 'LEXXXXXXXX',            // E.g. 'XXYYYYYYYY' OR 'XXYYYYYYYY,XXYYYYYYYY,XXYYYYYY' 10 Digits each number\n     ));\n}\n```\n\n## Other Usage\n\nWithin your controllers, you can call LeopardsCODClient Object and call approperiate functions for your need.\n\nYou can set credentials in various ways. See below\n\n### Set Credentials\n\n```php\nuse \\Developifynet\\LeopardsCOD\\LeopardsCODClient;\npublic function index()\n{\n    $leopards = new LeopardsCODClient(array(\n        'api_key' =\u003e '\u003cyour_api_key\u003e',              // API Key provided by LCS\n        'api_password' =\u003e '\u003cyour_api_password\u003e',    // API Password provided by LCS\n        'enable_test_mode' =\u003e true,                 // [Optional] default value is 'false', true|false to set mode test or live\n    ));\n}\n```\n\nor using 'setCredentials'\n\n```php\nuse \\Developifynet\\LeopardsCOD\\LeopardsCODClient;\npublic function index()\n{\n    $leopards = new LeopardsCODClient();\n    \n    $leopards-\u003esetCredentials(array(\n        'api_key' =\u003e '\u003cyour_api_key\u003e',              // API Key provided by LCS\n        'api_password' =\u003e '\u003cyour_api_password\u003e',    // API Password provided by LCS\n        'enable_test_mode' =\u003e true,                 // [Optional] default value is 'false', true|false to set mode test or live\n    ));\n}\n```\n\nor setting up with data. See below endpoints where credentials are porvided within function data\n\n\n### Get All Cities\n\n```php\nuse \\Developifynet\\LeopardsCOD\\LeopardsCODClient;\npublic function index()\n{\n    $leopards = new LeopardsCODClient();\n    \n    $response = $leopards-\u003egetAllCities(array(\n        'api_key' =\u003e '\u003cyour_api_key\u003e',              // API Key provided by LCS\n        'api_password' =\u003e '\u003cyour_api_password\u003e',    // API Password provided by LCS\n        'enable_test_mode' =\u003e true,                 // [Optional] default value is 'false', true|false to set mode test or live\n    ));\n}\n```\n\n### Book a Packet\n\n```php\nuse \\Developifynet\\LeopardsCOD\\LeopardsCODClient;\npublic function index()\n{\n    $leopards = new LeopardsCODClient();\n    \n    $response = $leopards-\u003ebookPacket(array(\n        'api_key' =\u003e '\u003cyour_api_key\u003e',              // API Key provided by LCS\n        'api_password' =\u003e '\u003cyour_api_password\u003e',    // API Password provided by LCS\n        'enable_test_mode' =\u003e true,                 // [Optional] default value is 'false', true|false to set mode test or live\n        'booked_packet_weight' =\u003e '200',\n        'booked_packet_vol_weight_w' =\u003e '',\n        'booked_packet_vol_weight_h' =\u003e '',\n        'booked_packet_vol_weight_l' =\u003e '',\n        'booked_packet_no_piece' =\u003e '1',\n        'booked_packet_collect_amount' =\u003e '1000',\n        'booked_packet_order_id' =\u003e '1001',\n        'origin_city' =\u003e 'string',                  /** Params: 'self' or 'integer_value' e.g. 'origin_city' =\u003e 'self' or 'origin_city' =\u003e 789 (where 789 is Lahore ID)\n                                                     * If 'self' is used then Your City ID will be used.\n                                                     * 'integer_value' provide integer value (for integer values read 'Get All Cities' api documentation)\n                                                     */\n            \n        'destination_city' =\u003e 'string',             /** Params: 'self' or 'integer_value' e.g. 'destination_city' =\u003e 'self' or 'destination_city' =\u003e 789 (where 789 is Lahore ID)\n                                                     * If 'self' is used then Your City ID will be used.\n                                                     * 'integer_value' provide integer value (for integer values read 'Get All Cities' api documentation) \n                                                     */\n        // Shipper Information\n        'shipment_name_eng' =\u003e 'self',\n        'shipment_email' =\u003e 'self',\n        'shipment_phone' =\u003e 'self',\n        'shipment_address' =\u003e 'self',\n        // Consingee Information\n        'consignment_name_eng' =\u003e 'John Doe',\n        'consignment_email' =\u003e 'johndoe@example.com',\n        'consignment_phone' =\u003e '+923330000000',\n        'consignment_address' =\u003e 'Test Address is used here',\n        'special_instructions' =\u003e 'n/a',\n     ));\n}\n```\n\n### Track Packet(s)\n\n```php\nuse \\Developifynet\\LeopardsCOD\\LeopardsCODClient;\npublic function index()\n{\n    $leopards = new LeopardsCODClient();\n    \n    $response = $leopards-\u003etrackPacket(array(\n        'api_key' =\u003e '\u003cyour_api_key\u003e',              // API Key provided by LCS\n        'api_password' =\u003e '\u003cyour_api_password\u003e',    // API Password provided by LCS\n        'enable_test_mode' =\u003e true,                 // [Optional] default value is 'false', true|false to set mode test or live\n        'track_numbers' =\u003e 'LEXXXXXXXX',            // E.g. 'XXYYYYYYYY' OR 'XXYYYYYYYY,XXYYYYYYYY,XXYYYYYY' 10 Digits each number\n     ));\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopifynet%2Fleopardscod-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopifynet%2Fleopardscod-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopifynet%2Fleopardscod-php/lists"}