codeboxr/redx-courier
Composer 安装命令:
composer require codeboxr/redx-courier
包简介
Bangladeshi Redx courier service api package
README 文档
README
Redx Courier Banagladesh
This is a Laravel/PHP package for Redx BD Courier System. This package can be used in laravel or without laravel/php projects. You can use this package for headless/rest implementation as well as blade or regular mode development. We created this package while working for a project and thought to made it release for all so that it helps. This package is available as regular php composer package.
Features
- Fetch Redx delivery area list
- Create new store
- Store list
- Store details
- Create new parcel
- Parcel details
- Parcel tracking
Requirements
- PHP >=7.2
- Laravel >= 6
Installation
composer require codeboxr/redx-courier
vendor publish (config)
php artisan vendor:publish --provider="Codeboxr\RedxCourier\RedxCourierServiceProvider"
After publish config file setup your credential. you can see this in your config directory redx.php file
"sandbox" => env("REDX_SANDBOX", false),
"access_token" => env("REDX_ACCESS_TOKEN", ""),
Set .env configuration
REDX_SANDBOX=true // for production mode use false
REDX_ACCESS_TOKEN=""
Usage
1. Get redx delivery area list
use Codeboxr\RedxCourier\Facade\RedxCourier
return RedxCourier::area()->list();
2. Create new store
use Codeboxr\RedxCourier\Facade\RedxCourier
return RedxCourier::store()
->create([
"name" => "", //store name
"phone" => "", //store contact person
"area_id" => "",
"address" => "",
]);
3. Get Store List
use Codeboxr\RedxCourier\Facade\RedxCourier
return RedxCourier::store()->list();
4. Store Details
use Codeboxr\RedxCourier\Facade\RedxCourier
return RedxCourier::store()->storeDetails($storeId);
5. Create new parcel
use Codeboxr\RedxCourier\Facade\RedxCourier
return RedxCourier::order()
->create([
"customer_name" => "",
"customer_phone" => "",
"delivery_area" => "", // delivery area name
"delivery_area_id" => "", // area id
"customer_address" => "",
"merchant_invoice_id" => "",
"cash_collection_amount" => "",
"parcel_weight" => "", //parcel weight in gram
"instruction" => "",
"value" => "", //compensation amount
"pickup_store_id" => "", // store id
"parcel_details_json" => ""
]);
6. Get Order Details
use Codeboxr\RedxCourier\Facade\RedxCourier
return RedxCourier::order()->orderDetails($trackingId); // After successfully create order they given a tracking_id
7. Order tracking
use Codeboxr\RedxCourier\Facade\RedxCourier
return RedxCourier::order()->tracking($trackingId); // After successfully create order they given a tracking_id
Contributing
Contributions to the Redx package are welcome. Please note the following guidelines before submitting your pull request.
- Follow PSR-4 coding standards.
- Read Redx API documentations first
License
Redx package is licensed under the MIT License.
Copyright 2022 Codeboxr
codeboxr/redx-courier 适用场景与选型建议
codeboxr/redx-courier 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 700 次下载、GitHub Stars 达 8, 最近一次更新时间为 2022 年 08 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 codeboxr/redx-courier 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 codeboxr/redx-courier 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 700
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-30