abdur-rahaman/redx-courier
Composer 安装命令:
composer require abdur-rahaman/redx-courier
包简介
Redx Shipping method courier services
README 文档
README
Installation Run the following command to install the package:
composer require abdur-rahaman/redx-courier
Configuration After installation, publish the configuration file:
php artisan vendor:publish --provider="AbdurRahaman\\RedxCourier\\RedxServiceProvider"
This will create a config/redex-courier.php file. Update the configuration with your API key and environment settings.
Example configuration:
<?php return [ 'api_key' => env('REDX_API_KEY'), 'redx_env' => env('REDX_ENV', 'SANDBOX'), // 'SANDBOX' or 'LIVE' 'live_url' => 'https://api.redx.com.bd', 'sendbox_url' => 'https://sandbox.redx.com.bd', 'timeout' => 30, ];
Usage Basic Usage Use the Redx facade or resolve the service from the container.
<?php use AbdurRahaman\RedxCourier\Facades\Redx; // Get all areas $areas = Redx::getAreas(); // Get area by postal code $area = Redx::areaByPostCode(1200); // Add a pickup store $store = Redx::addPickupStore([ 'name' => 'My Store', 'phone' => '0123456789', 'address' => '123 Main St', 'area_id' => 1, ]); // Get charge for delivery $charge = Redx::getCharge([ 'area_id' => 1, 'pickup_id' => 1, 'total_amount' => 1000, 'weight' => 1.5, ]); // Create a parcel $parcel = Redx::createParcel([ 'customer_name' => 'John Doe', 'customer_phone' => '0123456789', 'delivery_area' => 'Dhaka', 'delivery_area_id' => 1, 'customer_address' => '456 Elm St', 'merchant_invoice_id' => 'INV001', 'cash_collection_amount' => 1000, 'parcel_weight' => 1.5, 'instruction' => 'Handle with care', 'value' => 1000, 'is_closed_box' => true, // ... other fields ]); // Update a Parcel $update = Redex::parcelUpdate([ 'entity_type' => "parcel-tracking-id", "entity_id" => '20A316MOG0DI', "property_name" => 'status', // Property name you want to update "new_value" => "cancelled", // Update value "reason" => "Customer Change his mind" // Update reason ]);
Available Methods
getAreas(): Get all delivery areas areaByPostCode(int $postalCode): Get area by postal code areaByDistrictName(string $districtName): Get area by district name addPickupStore(array $data): Add a pickup store getPickupStores(): Get all pickup stores pickupDetails(int|string $pickupId): Get pickup store details getCharge(array $data): Calculate delivery charge createParcel(array $data): Create a new parcel trackParcel(string $tracking_id) : Track a Parcel parcelUpdate(array $data ) : Update Parcel Details froudCheck(string $contact): Customer Recieved and cancelation ratio
Requirements PHP 8.1 or higher
Laravel 9 or higher
License MIT
abdur-rahaman/redx-courier 适用场景与选型建议
abdur-rahaman/redx-courier 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 03 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 abdur-rahaman/redx-courier 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 abdur-rahaman/redx-courier 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 30
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-20