kaderdevbd/courier-fraud-checker-bd
Composer 安装命令:
composer require kaderdevbd/courier-fraud-checker-bd
包简介
A fraud detection tool for e-commerce platforms to analyze customer order behavior across Steadfast and Pathao couriers.
关键字:
README 文档
README
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:
composer require shahariar-ahmad/courier-fraud-checker-bd
Add Service Provider (Laravel 5.4 and below)
In config/app.php:
'providers' => [ ShahariarAhmad\CourierFraudCheckerBd\CourierFraudCheckerBdServiceProvider::class, ],
Add Facade Alias (optional)
In config/app.php:
'aliases' => [ 'CourierFraudCheckerBd' => ShahariarAhmad\CourierFraudCheckerBd\Facade\CourierFraudCheckerBd::class, ],
🔧 Configuration
Add these environment variables to your .env file:
# Pathao Credentials PATHAO_USER=your_pathao_email PATHAO_PASSWORD=your_pathao_password # Steadfast Credentials STEADFAST_USER=your_steadfast_email STEADFAST_PASSWORD=your_steadfast_password
🚀 Usage
Basic Usage
use CourierFraudCheckerBd; $result = CourierFraudCheckerBd::check('01886607475'); print_r($result);
Output:
[
'pathao' => ['success' => 5, 'cancel' => 2, 'total' => 7],
'steadfast' => ['success' => 3, 'cancel' => 1, 'total' => 4]
]
☎️ Phone Number Validation
The package automatically validates phone numbers with this regex:
/^01[3-9][0-9]{8}$/
✅ Valid examples:
0171234567801876543219
❌ Invalid examples:
+8801712345678(includes country code)1234567890(too short)02171234567(invalid prefix)
🛠️ Advanced Usage
Using Individual Services
use ShahariarAhmad\CourierFraudCheckerBd\Services\PathaoService; use ShahariarAhmad\CourierFraudCheckerBd\Services\SteadfastService; $pathao = (new PathaoService())->pathao('01712345678'); $steadfast = (new SteadfastService())->steadfast('01712345678');
Custom Validation Rules
use ShahariarAhmad\CourierFraudCheckerBd\Helpers\CourierFraudCheckerHelper; CourierFraudCheckerHelper::validatePhoneNumber('01712345678');
🧹 Troubleshooting
Common Issues
-
Missing Environment Variables
- Ensure all required credentials are set in
.env - Run
php artisan config:clearafter updating
- Ensure all required credentials are set in
-
Invalid Phone Number Format
- Must use local (BD) format like
01712345678 - Do not include
+88prefix
- 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: muhd.shahariar@gmail.com
kaderdevbd/courier-fraud-checker-bd 适用场景与选型建议
kaderdevbd/courier-fraud-checker-bd 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 2, 最近一次更新时间为 2026 年 02 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「e-commerce」 「shipping」 「delivery」 「courier」 「laravel package」 「fraud detection」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 kaderdevbd/courier-fraud-checker-bd 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kaderdevbd/courier-fraud-checker-bd 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 kaderdevbd/courier-fraud-checker-bd 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Implementation of the Omnibus Directive for Sylius application.
PHP SDK for the Parcel Monkey UK API
Livewire starter kit for Lunar e-commerce.
Admin Hub for GetCandy. A modern headless e-commerce solution for Laravel PHP framework.
PHP wrapper for DPD Germany SOAP API
Metamel Addresses is a polymorphic Laravel package, for address book management. You can add addresses to any eloquent model with ease.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 42
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2026-02-13