PHPackages                             raj5852/pathao-courier - 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. raj5852/pathao-courier

ActiveLibrary[API Development](/categories/api)

raj5852/pathao-courier
======================

Bangladeshi Pathao courier service api package

01PHP

Since Feb 1Pushed 2y agoCompare

[ Source](https://github.com/raj5852/pathao-courier)[ Packagist](https://packagist.org/packages/raj5852/pathao-courier)[ RSS](/packages/raj5852-pathao-courier/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [![](https://camo.githubusercontent.com/29c9548be2da575d84fc851a9c780e4f4c6181c977b5da9b60671ca3e5c69380/68747470733a2f2f70617468616f2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031392f30322f50617468616f2d6c6f676f2e737667)](https://camo.githubusercontent.com/29c9548be2da575d84fc851a9c780e4f4c6181c977b5da9b60671ca3e5c69380/68747470733a2f2f70617468616f2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031392f30322f50617468616f2d6c6f676f2e737667)

Pathao Courier Banagladesh
==========================

[](#pathao-courier-banagladesh)

[![](https://camo.githubusercontent.com/6296b5612be6454215467999036313b90aa5939e86b33bcbeec2abbc8fe68c08/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6465626f78722f70617468616f2d636f7572696572)](https://camo.githubusercontent.com/6296b5612be6454215467999036313b90aa5939e86b33bcbeec2abbc8fe68c08/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6465626f78722f70617468616f2d636f7572696572)[![](https://camo.githubusercontent.com/473fd131065e6afcabf9c02f9024f2fc2b2cde77a915d30dbada6dd14580db99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f636f6465626f78722f70617468616f2d636f7572696572)](https://camo.githubusercontent.com/473fd131065e6afcabf9c02f9024f2fc2b2cde77a915d30dbada6dd14580db99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f636f6465626f78722f70617468616f2d636f7572696572)

This is a Laravel/PHP package for [Pathao](https://pathao.com) BD Courier System. This package can be used in laravel or without laravel/php projects. You can use this package for headless/rest implementation as well as blade or regular mode development. We created this package while working for a project and thought to made it release for all so that it helps. This package is available as regular php [composer package](https://packagist.org/packages/codeboxr/pathao-courier).

Features
--------

[](#features)

1. [Fetch Pathao delivery/store city list](https://github.com/codeboxrcodehub/pathao-courier#1-get-pathao-delivery-city-list)
2. [Fetch Pathao delivery/store zone list](https://github.com/codeboxrcodehub/pathao-courier#2-to-get-pathao-zone-list)
3. [Fetch Pathao delivery/store area list](https://github.com/codeboxrcodehub/pathao-courier#3-to-get-pathao-delivery-area-list)
4. [Create pickup store](https://github.com/codeboxrcodehub/pathao-courier#4-create-new-store)
5. [Fetch pickup store list](https://github.com/codeboxrcodehub/pathao-courier#5-get-store-list)
6. [Create parcel](https://github.com/codeboxrcodehub/pathao-courier#6-create-new-parcel)
7. [Fetch Parcel Details](https://github.com/codeboxrcodehub/pathao-courier#7-get-order-details)

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

[](#requirements)

- PHP &gt;=7.4
- Laravel &gt;= 6

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

[](#installation)

```
composer require codeboxr/pathao-courier
```

### vendor publish (config)

[](#vendor-publish-config)

```
php artisan vendor:publish --provider="Codeboxr\PathaoCourier\PathaoCourierServiceProvider"
```

After publish config file setup your credential. you can see this in your config directory pathao.php file

```
"sandbox"       => env("PATHAO_SANDBOX", false), // for sandbox mode use true
"client_id"     => env("PATHAO_CLIENT_ID", ""),
"client_secret" => env("PATHAO_CLIENT_SECRET", ""),
"username"      => env("PATHAO_USERNAME", ""),
"password"      => env("PATHAO_PASSWORD", "")

```

### Set .env configuration

[](#set-env-configuration)

```
PATHAO_SANDBOX=true // for production mode use false
PATHAO_CLIENT_ID=""
PATHAO_CLIENT_SECRET=""
PATHAO_USERNAME=""
PATHAO_PASSWORD=""

```

Usage
-----

[](#usage)

### 1. Get pathao delivery city list

[](#1-get-pathao-delivery-city-list)

```
use Codeboxr\PathaoCourier\Facade\PathaoCourier

return PathaoCourier::area()->city();

```

### 2. To get pathao zone list

[](#2-to-get-pathao-zone-list)

```
use Codeboxr\PathaoCourier\Facade\PathaoCourier

return PathaoCourier::area()->zone($cityId); // City ID

```

### 3. To get pathao delivery area list

[](#3-to-get-pathao-delivery-area-list)

```
use Codeboxr\PathaoCourier\Facade\PathaoCourier

return PathaoCourier::area()->area($zoneId); // Zone ID

```

### 4. Create new store

[](#4-create-new-store)

```
use Codeboxr\PathaoCourier\Facade\PathaoCourier

return PathaoCourier::store()
                        ->create([
                            "name"              => "", // Store Name
                            "contact_name"      => "", // Store contact person name
                            "contact_number"    => "", // Contact person number
                            "address"           => "", // Store address
                            "secondary_contact" => "", // Contact person secondary number not mandatory
                            "city_id"           => "", // Find in city method
                            "zone_id"           => "", // Find in zone method
                            "area_id"           => "", // Find in Area method
                        ]);

```

### 5. Get Store List

[](#5-get-store-list)

```
use Codeboxr\PathaoCourier\Facade\PathaoCourier

return PathaoCourier::store()->list();

```

### 6. Create new parcel

[](#6-create-new-parcel)

```
use Codeboxr\PathaoCourier\Facade\PathaoCourier

return PathaoCourier::order()
                        ->create([
                            "store_id"            => "", // Find in store list,
                            "merchant_order_id"   => "", // Unique order id
                            "recipient_name"      => "", // Customer name
                            "recipient_phone"     => "", // Customer phone
                            "recipient_address"   => "", // Customer address
                            "recipient_city"      => "", // Find in city method
                            "recipient_zone"      => "", // Find in zone method
                            "recipient_area"      => "", // Find in Area method
                            "delivery_type"       => "", // 48 for normal delivery or 12 for on demand delivery
                            "item_type"           => "", // 1 for document,
2 for parcel
                            "special_instruction" => "",
                            "item_quantity"       => "", // item quantity
                            "item_weight"         => "", // parcel weight
                            "amount_to_collect"   => "", // amount to collect
                            "item_description"    => "" // product details
                        ]);

```

### 7. Get Order Details

[](#7-get-order-details)

```
use Codeboxr\PathaoCourier\Facade\PathaoCourier

return PathaoCourier::order()->orderDetails($consignmentId); // After successfully create order they given a consignment_id

```

Contributing
------------

[](#contributing)

Contributions to the Pathao package are welcome. Please note the following guidelines before submitting your pull request.

- Follow [PSR-4](http://www.php-fig.org/psr/psr-4/) coding standards.
- Read Pathao API documentations first

License
-------

[](#license)

Pathao package is licensed under the [MIT License](http://opensource.org/licenses/MIT).

Copyright 2022 [Codeboxr](https://codeboxr.com)

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0806fc6eff25ff0d329a88f632a4c7dfd91587b270af28b5743c88f9fe5f2720?d=identicon)[raj58](/maintainers/raj58)

---

Top Contributors

[![dipudey](https://avatars.githubusercontent.com/u/50619501?v=4)](https://github.com/dipudey "dipudey (7 commits)")[![manchumahara](https://avatars.githubusercontent.com/u/204452?v=4)](https://github.com/manchumahara "manchumahara (4 commits)")[![AbiruzzamanMolla](https://avatars.githubusercontent.com/u/20683047?v=4)](https://github.com/AbiruzzamanMolla "AbiruzzamanMolla (2 commits)")[![raj5852](https://avatars.githubusercontent.com/u/70055487?v=4)](https://github.com/raj5852 "raj5852 (2 commits)")

### Embed Badge

![Health badge](/badges/raj5852-pathao-courier/health.svg)

```
[![Health](https://phpackages.com/badges/raj5852-pathao-courier/health.svg)](https://phpackages.com/packages/raj5852-pathao-courier)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/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)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M96](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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