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

ActiveLibrary

kiranaryal/pathao-courier-nepal
===============================

A complete Laravel package for Pathao Courier for nepal fork of enan/pathao-courier

1200PHP

Since Nov 9Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

 [![](https://camo.githubusercontent.com/2977f4380e0752bb75f7fc79de81371379d43b9d6d1d0908bc99ec0d63059205/68747470733a2f2f6d6f616d6d65722d656e616e2e636f6d2f706f7274666f6c696f2f6173736574732f696d672f50617468616f5f436f75726965725f4150495f496e746567726174696f6e5f776974685f4c61726176656c2e706e67)](https://camo.githubusercontent.com/2977f4380e0752bb75f7fc79de81371379d43b9d6d1d0908bc99ec0d63059205/68747470733a2f2f6d6f616d6d65722d656e616e2e636f6d2f706f7274666f6c696f2f6173736574732f696d672f50617468616f5f436f75726965725f4150495f496e746567726174696f6e5f776974685f4c61726176656c2e706e67)

A complete Laravel Package for Pathao Courier
=============================================

[](#a-complete-laravel-package-for-pathao-courier)

A complete package for Laravel to use [Pathao Courier Merchant API](https://merchant.pathao.com/). Setup once and forget about it. You don’t even have to worry about the validation of creating orders, creating a store, or getting calculated price value which are generally a POST request on the Pathao courier end.
With this package you can get the following

- Get the city list
- Get the zone list
- Get the area list
- Get the store list
- Create Store
- Get order details
- Get calculated price
- Get the token exipiration days left and also expected date of it
- Get the user success rate using phone number [![New](https://camo.githubusercontent.com/7fc8ba971c9405020464ddced48a2142334cc2f0f33cd2385ad9ad50a70cf5ec/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4e65772d627269676874677265656e)](https://camo.githubusercontent.com/7fc8ba971c9405020464ddced48a2142334cc2f0f33cd2385ad9ad50a70cf5ec/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4e65772d627269676874677265656e)

It offers you a bunch of validation for Create order, Create Store, Get calculated price.So you don't have to worry about the validation for all of this.

⚙️ Installation
---------------

[](#️-installation)

You can install the package via composer:

```
composer require kiranaryal/pathao-courier-nepal
```

You can publish the migration file and config file with:

```
php artisan vendor:publish --tag="pathao-courier-config"
```

Though Laravel auto discover. If not add the following in `config\app.php`. You can skip this part if you want.

```
// add below line in the providers array
Kiranaryal\PathaoCourier\PathaoCourierServiceProvider::class,

// add below line in the alias array
'PathaoCourier' => Kiranaryal\PathaoCourier\Facades\PathaoCourier::class,
```

> Add the following environment variables to your `.env` file. You can choose the table name of migration before running the migration. Default is 'pathao-courier'

```
PATHAO_DB_TABLE_NAME='pathao-courier'
PATHAO_CLIENT_ID=
PATHAO_CLIENT_SECRET=
PATHAO_SECRET_TOKEN=
```

### 🔑 Where can I find the value?

[](#-where-can-i-find-the-value)

Go to your [Pathao Developers Api](https://merchant.pathao.com/courier/developer-api) and you'll find `Merchant API Credentials` there. And for `PATHAO_SECRET_TOKEN=` you'll be provided it after the successfull authentication.

### 🎫 Setup

[](#-setup)

Run the migration

```
php artisan migrate
```

You have to set the token of pathao courier. To set run below artisan command
The command will ask the credentials. This is a one time process. You don't have to setup this again.
If you want to update current token and secret you can run the command again.
You will be provided a secret token here. Please set the token in your `.env` file with `PATHAO_SECRET_TOKEN=`

```
php artisan set:pathao-courier
```

🏗 Usage
-------

[](#-usage)

Add the Facade before using

```
use Kiranaryal\PathaoCourier\Facades\PathaoCourier;
```

> For the POST type response the required validation are mentioned before the function like &lt;required, string&gt; So here the value should be required and string

```
/**
 * To Get the days left of token expiration
 * You'll get the expected date of the expiration and total days left
 *
 * @type
 */
PathaoCourier::GET_ACCESS_TOKEN_EXPIRY_DAYS_LEFT();

/**
 * To Get the cities
 *
 * @type
 */
PathaoCourier::GET_CITIES();

/**
 * To Get the Zones
 * @type
 *
 * @param int $city_id
 */
PathaoCourier::GET_ZONES(int $city_id);

/**
 * To Get the Areas
 * @type
 *
 * @param int $zone_id
 */
PathaoCourier::GET_AREAS(int $zone_id);

/**
 * To Get the Stores
 * @type
 *
 * @param int $page
 * $page param is optional. If you want you can implement pagination here.
 */
PathaoCourier::GET_STORES(int $page);

/**
 * To Create Store
 * @type
 * Pass below mentioned parameter
 *
 * @param $name
 * @param $contact_name
 * @param $contact_number
 * @param $address
 * @param $city_id
 * @param $zone_id
 * @param $area_id
 */
PathaoCourier::CREATE_STORE($request);

/**
 * To Create Order
 * @type
 * Pass below mentioned parameter
 *
 * @param $store_id
 * @param $merchant_order_id
 * @param $sender_name
 * @param $sender_phone
 * @param $recipient_name
 * @param $recipient_phone
 * @param $recipient_address
 * @param $recipient_city
 * @param $recipient_zone
 * @param $recipient_area
 * @param $delivery_type     is provided by the merchant and not changeable. 48 for Normal Delivery, 12 for On Demand Delivery"
 * @param $item_type     is provided by the merchant and not changeable. 1 for Document, 2 for Parcel"
 * @param $special_instruction
 * @param $item_quantity
 * @param $item_weight
 * @param $amount_to_collect
 * @param $item_description
 */
PathaoCourier::CREATE_ORDER($request);

/**
 * To Get Price Calculation
 * @type
 * Pass below mentioned parameter
 *
 * @param $delivery_type
 * @param $item_type
 * @param $item_weight
 * @param $recipient_city
 * @param $recipient_zone
 * @param $store_id
 */
PathaoCourier::GET_PRICE_CALCULATION($request);

/**
 * To View Order
 * @type
 * @param string $consignment_id
 */
PathaoCourier::VIEW_ORDER(string $consignment_id);

/**
 * To Get User's success rate using phone number
 * @type
 * @param string $phone
 */
PathaoCourier::GET_USER_SUCCESS_RATE($request);
```

Credits
-------

[](#credits)

- [Moammer Farshid Enan](https://github.com/Enan)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 73.7% 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.

### Community

Maintainers

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

---

Top Contributors

[![enuenan](https://avatars.githubusercontent.com/u/30136410?v=4)](https://github.com/enuenan "enuenan (14 commits)")[![Enan54](https://avatars.githubusercontent.com/u/167304086?v=4)](https://github.com/Enan54 "Enan54 (4 commits)")[![kiranaryal](https://avatars.githubusercontent.com/u/29688675?v=4)](https://github.com/kiranaryal "kiranaryal (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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