azis-alvriyanto / shopee-express-waybill
Shopee Express Waybill
v1.0.0
2024-12-07 11:04 UTC
Requires
- php: ^8.1
Requires (Dev)
- phpunit/phpunit: ^9.5|^10|^11|^12
README
Requirements
- PHP >= 8.1
- A cup of coffee ☕
Installation
composer require azis-alvriyanto/shopee-express-waybill
Usage
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; }
Testing
To run the tests, use PHPUnit. Ensure PHPUnit is installed as a development dependency:
composer install --dev
composer test
API Documentation
Server API ready to use publicly in https://shopee-express-waybill.membasuh.com or you can get postman collection here.
Contributing
Contributions are welcome! Please fork the repository and submit a pull request.
Credits
License
The MIT License (MIT). Please see License File for more information.