PHPackages                             huzaifaalmesbah/bd-courier-customer-delivery-stats - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. huzaifaalmesbah/bd-courier-customer-delivery-stats

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

huzaifaalmesbah/bd-courier-customer-delivery-stats
==================================================

A universal PHP package for tracking customer delivery statistics across Pathao, Steadfast, and RedX couriers in Bangladesh. Get comprehensive delivery data including success, cancel, and total order statistics. Works with any PHP framework or CMS including Laravel, WordPress, CodeIgniter, Symfony, and more.

1.0.0(11mo ago)19GPL-3.0PHPPHP ^7.4|^8.0|^8.1|^8.2|^8.3

Since Jun 4Pushed 11mo agoCompare

[ Source](https://github.com/huzaifaalmesbah/bd-courier-customer-delivery-stats)[ Packagist](https://packagist.org/packages/huzaifaalmesbah/bd-courier-customer-delivery-stats)[ RSS](/packages/huzaifaalmesbah-bd-courier-customer-delivery-stats/feed)WikiDiscussions main Synced 1mo ago

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

📦 BD Courier Customer Delivery Stats
====================================

[](#-bd-courier-customer-delivery-stats)

A powerful PHP package for tracking customer delivery statistics across Pathao, Steadfast, and RedX courier services in Bangladesh. Perfect for e-commerce businesses looking to analyze customer ordering patterns and delivery history.

> **Note**: Framework-agnostic fork of [shahariar-ahmad/courier-fraud-checker-bd](https://packagist.org/packages/shahariar-ahmad/courier-fraud-checker-bd), enhanced to work with any PHP framework.

---

✨ Key Features
--------------

[](#-key-features)

- **Works with Any PHP Framework**: Seamlessly integrates with Laravel, WordPress, CodeIgniter, Symfony, and more
- **Multiple Courier Support**: Track customer delivery statistics across Pathao, Steadfast, and RedX
- **Phone Number Validation**: Built-in validation for Bangladeshi phone numbers
- **Flexible Configuration**: Support for environment variables or direct configuration
- **Delivery Analytics**: Comprehensive success/cancel/total delivery statistics
- **Error Handling**: Graceful error handling with detailed messages
- **Simple Integration**: Easy-to-use API with comprehensive documentation

---

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

[](#️-installation)

```
composer require huzaifaalmesbah/bd-courier-customer-delivery-stats
```

### Requirements:

[](#requirements)

- PHP 7.4 or higher
- Guzzle HTTP client (automatically installed)

---

🔧 Configuration
---------------

[](#-configuration)

### Option 1: Environment Variables (Recommended)

[](#option-1-environment-variables-recommended)

Add these to your `.env` file:

```
# Pathao Credentials
PATHAO_USER=your_pathao_email@example.com
PATHAO_PASSWORD=your_pathao_password

# Steadfast Credentials
STEADFAST_USER=your_steadfast_email@example.com
STEADFAST_PASSWORD=your_steadfast_password

# RedX Credentials
REDX_USER=your_redx_phone@example.com
REDX_PASSWORD=your_redx_password
```

### Option 2: Direct Configuration

[](#option-2-direct-configuration)

```
use Ham\BdCourier\CustomerDeliveryStats\CourierCustomerStats;

$customerStats = new CourierCustomerStats([
    'pathao_user' => 'your_pathao_email@example.com',
    'pathao_password' => 'your_pathao_password',
    'steadfast_user' => 'your_steadfast_email@example.com',
    'steadfast_password' => 'your_steadfast_password',
    'redx_user' => 'your_redx_phone@example.com',
    'redx_password' => 'your_redx_password',
]);
```

---

🚀 Quick Start
-------------

[](#-quick-start)

```
