Download the PHP package shahariar-ahmad/courier-fraud-checker-bd without Composer
On this page you can find all versions of the php package shahariar-ahmad/courier-fraud-checker-bd. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shahariar-ahmad/courier-fraud-checker-bd
More information about shahariar-ahmad/courier-fraud-checker-bd
Files in shahariar-ahmad/courier-fraud-checker-bd
Package courier-fraud-checker-bd
Short Description A fraud detection tool for e-commerce platforms to analyze customer order behavior across Steadfast and Pathao couriers.
License GPL-3.0
Informations about the package courier-fraud-checker-bd
Courier Fraud Checker BD for Laravel
A Laravel package to detect potential fraudulent orders by checking customer delivery behavior through Pathao and Steadfast courier services in Bangladesh.
โจ Features
- Check customer delivery history across multiple couriers
- Validate Bangladeshi phone numbers
- Get success/cancel/total delivery statistics
- Supports both Pathao and Steadfast courier services
โ๏ธ Installation
Install via Composer:
Add Service Provider (Laravel 5.4 and below)
In config/app.php
:
Add Facade Alias (optional)
In config/app.php
:
๐ง Configuration
Add these environment variables to your .env
file:
๐ Usage
Basic Usage
Output:
โ๏ธ Phone Number Validation
The package automatically validates phone numbers with this regex:
โ Valid examples:
01712345678
01876543219
โ Invalid examples:
+8801712345678
(includes country code)1234567890
(too short)02171234567
(invalid prefix)
๐ ๏ธ Advanced Usage
Using Individual Services
Custom Validation Rules
๐งน Troubleshooting
Common Issues
-
Missing Environment Variables
- Ensure all required credentials are set in
.env
- Run
php artisan config:clear
after updating
- Ensure all required credentials are set in
- Invalid Phone Number Format
- Must use local (BD) format like
01712345678
- Do not include
+88
prefix
- Must use local (BD) format like
๐ License
This package is open-source software licensed under the GNU General Public License v3.0 (GPL-3.0).
Under this license:
โ You are allowed to:
- Use the package for personal or commercial projects.
- Modify the source code for your own use.
- Distribute the modified or original source code provided you also license it under GPL-3.0.
- Study and learn from the source code freely.
โ You are NOT allowed to:
- Re-license the package under a different license.
- Distribute the package as part of a proprietary/commercial closed-source software without making your source code public.
- Sub-license or sell the software under a restrictive license.
Important:
If you distribute modified versions of this package, you must also release your changes under the GPL-3.0 license and include the original copyright.
GPL-3.0 promotes freedom to use, share, and modify, but ensures that any distributed version remains free and open-source.
๐ฌ Support
For issues and feature requests:
- Email: [email protected]