azis-alvriyanto / shopee-express-waybill
Shopee 快递运单
v1.0.1
2024-08-13 07:46 UTC
Requires
- php: ^8.1
Requires (Dev)
- phpunit/phpunit: ^9.5|^10|^11|^12
README
要求
- PHP >= 8.1
- 一杯咖啡 ☕
安装
composer require azis-alvriyanto/shopee-express-waybill
用法
use AzisAlvriyanto\ShopeeExpressWaybill\ShopeeExpressWaybill; // Initialize $shopeeExpressWaybill = new ShopeeExpressWaybill(); // Example: Check shipping number $response = $shopeeExpressWaybill->check('SPXID133333333337'); // Output response if ($response->success) { echo "Success: " . $response->message; print_r($response->data); } else { echo "Error: " . $response->message; }
测试
要运行测试,请使用PHPUnit。请确保PHPUnit已安装为开发依赖项。
composer install --dev
composer test
API 文档
服务器API已准备好公开使用,可在 https://shopee-express-waybill.membasuh.com 或在此处获取postman收藏here。
贡献
欢迎贡献!请fork仓库并提交拉取请求。
致谢
许可
MIT 许可证(MIT)。有关更多信息,请参阅 许可文件。