Download the PHP package huzaifaalmesbah/bd-courier-customer-delivery-stats without Composer
On this page you can find all versions of the php package huzaifaalmesbah/bd-courier-customer-delivery-stats. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download huzaifaalmesbah/bd-courier-customer-delivery-stats
More information about huzaifaalmesbah/bd-courier-customer-delivery-stats
Files in huzaifaalmesbah/bd-courier-customer-delivery-stats
Package bd-courier-customer-delivery-stats
Short Description 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.
License GPL-3.0
Informations about the package 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, enhanced to work with any PHP framework.
โจ 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
Requirements:
- PHP 7.4 or higher
- Guzzle HTTP client (automatically installed)
๐ง Configuration
Option 1: Environment Variables (Recommended)
Add these to your .env
file:
Option 2: Direct Configuration
๐ Quick Start
Output Example:
๐ฑ Phone Number Validation
The package includes built-in validation for Bangladeshi phone numbers:
Validation Rules:
- โ
Valid:
01712345678
,01876543219
- โ Invalid:
+8801712345678
,02171234567
,1234567890
๐ ๏ธ Advanced Usage
Check Individual Courier Services
Error Handling
Risk Assessment Example
๐ Framework Integration Examples
Laravel Integration
WordPress Integration
CodeIgniter Integration
๐ Examples
Check the examples/
directory for complete integration examples:
examples/BasicUsage.php
- Basic usage in any PHP project
๐งน Troubleshooting
Common Issues
-
Missing Configuration
Solution: Ensure all credentials are set in environment variables or configuration array.
-
Invalid Phone Number
Solution: Use local BD format like
01712345678
without+88
prefix. -
HTTP Request Failed
Solution: Check internet connection and API endpoint availability.
-
Guzzle HTTP Client Missing
Solution: Run
composer install
to install dependencies.
๐ License
This package is open-source software licensed under the GNU General Public License v3.0 (GPL-3.0).
๐ Links & Support
- GitHub: huzaifaalmesbah/bd-courier-customer-delivery-stats
- Packagist: huzaifaalmesbah/bd-courier-customer-delivery-stats
- Issues: GitHub Issues
- Contact: [email protected]
- Original Package: shahariar-ahmad/courier-fraud-checker-bd
๐ค Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
๐ Version History
- v1.0.0 - Initial release
- Framework-agnostic design
- Support for multiple PHP frameworks
- Comprehensive phone validation
- Enhanced error handling
- Complete documentation and examples
๐ Credits
This package is a universal, framework-agnostic fork of the original Laravel-specific package:
- Original Author: Shahariar Ahmad
- Original Package: shahariar-ahmad/courier-fraud-checker-bd
- Original Repository: ShahariarAhmad/ShahariarAhmad-CourierFraudCheckerBD---packagist.org
Enhancements in This Version:
- โจ Universal Compatibility: Works with any PHP framework
- ๐ง Framework-Agnostic: No longer depends on Laravel
- ๐ฑ Enhanced Phone Validation: Improved phone number validation
- ๐ ๏ธ Flexible Configuration: Multiple configuration methods
- ๐ Comprehensive Examples: Examples for various frameworks
Special thanks to Shahariar Ahmad for the original implementation.