PHPackages                             na0260/pathao-api-laravel-package - 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. na0260/pathao-api-laravel-package

ActiveLibrary[API Development](/categories/api)

na0260/pathao-api-laravel-package
=================================

A Laravel 8–12 compatible Pathao Courier API integration package with token caching and full feature support.

v1.1.0(7mo ago)13MITPHPPHP ^8.1

Since Oct 6Pushed 7mo agoCompare

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

READMEChangelogDependencies (2)Versions (4)Used By (0)

Pathao Laravel API Package
==========================

[](#pathao-laravel-api-package)

This package provides a complete Laravel integration with the Pathao Courier Merchant API. You can manage stores, orders, bulk orders, price calculation, and fetch cities, zones, and areas.

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

[](#installation)

Install via Composer:

```
composer require na0260/pathao-api-laravel-package
```

Configuration
-------------

[](#configuration)

Publish the config file (optional):

```
php artisan vendor:publish --provider="Nur\Pathao\PathaoServiceProvider" --tag="config"
```

Add credentials in `.env`:

```
PATHAO_CLIENT_ID=your_client_id
PATHAO_CLIENT_SECRET=your_client_secret
PATHAO_USERNAME=your_email
PATHAO_PASSWORD=your_password
PATHAO_SANDBOX=false (if you want to use sandbox use true, otherwise false)

```

Usage
-----

[](#usage)

All calls can be made via the `Pathao` facade.

### Cities, Zones, Areas

[](#cities-zones-areas)

```
$cities = Pathao::cities();
$zones = Pathao::zones($cityId);
$areas = Pathao::areas($zoneId);
```

### Stores

[](#stores)

#### Create Store

[](#create-store)

```
$store = Pathao::createStore([
    'name' => 'Test Store',
    'contact_name' => 'John Doe',
    'contact_number' => '017XXXXXXXX',
    'address' => 'House 123, Road 4, Dhaka',
    'city_id' => {{city_id}},
    'zone_id' => {{zone_id}},
    'area_id' => {{area_id}},
]);
```

#### Store Info

[](#store-info)

```
$stores = Pathao::storeInfo();
```

### Orders

[](#orders)

#### Create Order

[](#create-order)

```
$order = Pathao::createOrder([
    'store_id' => {{merchant_store_id}},
    'merchant_order_id' => "{{merchant_order_id}}",
    'recipient_name' => 'John Doe',
    'recipient_phone' => '017XXXXXXXX',
    'recipient_address' => 'House 123, Road 4, Dhaka',
    'delivery_type' => {{48 for Normal Delivery, 12 for On Demand Delivery}},
    'item_type' => {{1 for Document, 2 for Parcel}},
    'item_quantity' => {{Quantity of your parcels}},
    'item_weight' => {{Minimum 0.5 KG to Maximum 10 KG}},
    'item_description' => 'Test item',
    'amount_to_collect' => {{Recipient Payable Amount. Default should be 0 in case of NON Cash-On-Delivery(COD)The collectible amount from the customer.}},
]);
```

#### Bulk Order

[](#bulk-order)

```
$orders = [$order1, $order2];
$response = Pathao::createBulkOrder($orders);
```

#### Order Info

[](#order-info)

```
$orderInfo = Pathao::orderInfo($consignmentId);
```

### Price Calculator

[](#price-calculator)

```
$price = Pathao::priceCalculator([
    'store_id' => {{merchant_store_id}},
    'item_type' => {{1 for Document, 2 for Parcel}},
    'delivery_type' => {{48 for Normal Delivery, 12 for On Demand Delivery}},
    'item_weight' => {{Minimum 0.5 KG to Maximum 10 KG}},
    'recipient_city' => {{city_id}},
    'recipient_zone' => {{zone_id}},
]);
```

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

[](#requirements)

- Laravel 8-12
- PHP 8.2+

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance64

Regular maintenance activity

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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 ~0 days

Total

2

Last Release

218d ago

PHP version history (2 changes)v1.0.0PHP &gt;=8.0

v1.1.0PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![na0260](https://avatars.githubusercontent.com/u/118448261?v=4)](https://github.com/na0260 "na0260 (15 commits)")

---

Tags

apicourierpathaopathao-apipathao-courierpathao-courier-laravelpathao-developer-apipathao-merchant

### Embed Badge

![Health badge](/badges/na0260-pathao-api-laravel-package/health.svg)

```
[![Health](https://phpackages.com/badges/na0260-pathao-api-laravel-package/health.svg)](https://phpackages.com/packages/na0260-pathao-api-laravel-package)
```

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

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