PHPackages                             codeboxr/paperfly-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. codeboxr/paperfly-courier

ActiveLibrary[API Development](/categories/api)

codeboxr/paperfly-courier
=========================

Bangladeshi Paperfly courier service api package

v1.0.2(3y ago)2465MITPHPPHP ^7.2|^7.3|^8.0|^8.1

Since Sep 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/codeboxrcodehub/paperfly-courier)[ Packagist](https://packagist.org/packages/codeboxr/paperfly-courier)[ RSS](/packages/codeboxr-paperfly-courier/feed)WikiDiscussions main Synced today

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

 [![](https://raw.githubusercontent.com/codeboxrcodehub/paperfly-courier/main/image/logo.png)](https://raw.githubusercontent.com/codeboxrcodehub/paperfly-courier/main/image/logo.png)

Paperfly Courier Banagladesh
============================

[](#paperfly-courier-banagladesh)

[![](https://camo.githubusercontent.com/3d5b422a1ed4687e276d781e741347d8194a3909c98a930e9f1b82f58d34e0ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6465626f78722f7061706572666c792d636f7572696572)](https://camo.githubusercontent.com/3d5b422a1ed4687e276d781e741347d8194a3909c98a930e9f1b82f58d34e0ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6465626f78722f7061706572666c792d636f7572696572)[![](https://camo.githubusercontent.com/c9322f0b4b84607431139029bc2548ca1665e82dcb0223142a628b2fb096067f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f636f6465626f78722f7061706572666c792d636f7572696572)](https://camo.githubusercontent.com/c9322f0b4b84607431139029bc2548ca1665e82dcb0223142a628b2fb096067f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f636f6465626f78722f7061706572666c792d636f7572696572)

This is a Laravel/PHP package for [Paperfly](https://paperfly.com.bd/) 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/paperfly-courier).

Features
--------

[](#features)

1. [Create parcel](https://github.com/codeboxrcodehub/paperfly-courier#1-parcel-create)
2. [Parcel tracking](https://github.com/codeboxrcodehub/paperfly-courier#2-parcel-tracking)
3. [Parcel details](https://github.com/codeboxrcodehub/paperfly-courier#3-parcel-details)
4. [Cancel parcel](https://github.com/codeboxrcodehub/paperfly-courier#4-cancel-parcel)

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

[](#requirements)

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

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

[](#installation)

```
composer require codeboxr/paperfly-courier
```

### vendor publish (config)

[](#vendor-publish-config)

```
php artisan vendor:publish --provider="Codeboxr\PaperflyCourier\PaperflyCourierServiceProvider"
```

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

```
"sandbox"  => env("PAPERFLY_SANDBOX", false),
"username" => env("PAPERFLY_USERNAME", ""),
"password" => env("PAPERFLY_PASSWORD", ""),
"key"      => env("PAPERFLY_KEY", "")

```

### Set .env configuration

[](#set-env-configuration)

```
PAPERFLY_SANDBOX=true // for production mode use false
PAPERFLY_USERNAME=""
PAPERFLY_PASSWORD=""
PAPERFLY_KEY=""

```

Usage
-----

[](#usage)

### 1. Parcel Create

[](#1-parcel-create)

```
use Codeboxr\PaperflyCourier\Facade\PaperflyCourier;

return PaperflyCourier::order()->create([
  "merOrderRef"          => "", // merchant invoice id
  "pickMerchantName"     => "" // Pickup store name,
  "pickMerchantAddress"  => "" // Pickup address,
  "pickMerchantThana"    => "" // Pickup thana name,
  "pickMerchantDistrict" => "" // Pickup district name,
  "pickupMerchantPhone"  => "" // Pickup contact person name,
  "productSizeWeight"    => "standard",
  "productBrief"         => "" // Parcel product details,
  "packagePrice"         => "" //parcel price,
  "deliveryOption"       => "regular",
  "custname"             => "" // customer name,
  "custaddress"          => "" // customer address,
  "customerThana"        => "" // customer thana name,
  "customerDistrict"     => "" // customer district name,
  "custPhone"            => "" // customer phone number,
  "max_weight"           => "" // parcel weight in kg
]);

```

### 2. Parcel Tracking

[](#2-parcel-tracking)

```
use Codeboxr\PaperflyCourier\Facade\PaperflyCourier;

return PaperflyCourier::order()->tracking($trackingNumber) // Tracking Number

```

### 3. Parcel Details

[](#3-parcel-details)

```
use Codeboxr\PaperflyCourier\Facade\PaperflyCourier;

return PaperflyCourier::order()->invoice($referenceNumber) // reference number

```

### 4. Cancel Parcel

[](#4-cancel-parcel)

```
use Codeboxr\PaperflyCourier\Facade\PaperflyCourier;

return PaperflyCourier::order()->cancel($referenceNumber) // reference number

```

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

[](#contributing)

Contributions to the Paperfly 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 Paperfly API documentations first

License
-------

[](#license)

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

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

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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 ~19 days

Total

3

Last Release

1358d ago

### Community

Maintainers

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

![](https://avatars.githubusercontent.com/u/4607323?v=4)[Codeboxr](/maintainers/codeboxr)[@codeboxr](https://github.com/codeboxr)

---

Top Contributors

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

---

Tags

bd-courierpackagepaperflypaperfly-apipaperfly-courierpaperfly-laravel

### Embed Badge

![Health badge](/badges/codeboxr-paperfly-courier/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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