Download the PHP package mhabibi/aftership-php-sdk without Composer
On this page you can find all versions of the php package mhabibi/aftership-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package aftership-php-sdk
AfterShip API PHP SDK
aftership-php is a PHP SDK (module) for AfterShip API. Module provides clean and elegant way to access API endpoints. Compatible with Afership API
Contact: [email protected]
Installation
Download and Install Composer. https://getcomposer.org/download/
Then, you have 2 options to download the AfterShip PHP SDK
- Run the following command to require AfterShip PHP SDK
or
- git pull this repo and run the following command
Please ensure you have installed the PHP extension CURL, you could run the following command to install it
and restart the web server and PHP process.
Testing
- Execulte the file: test/testing.php at your browser
- Insert your AfterShip API Key. How to generate AfterShip API Key
- Click the request all button or the button of the represented request
UnitTest
Couriers
Get your selected couriers list
https://www.aftership.com/docs/api/4/couriers/get-couriers
Get all our supported couriers list
https://www.aftership.com/docs/api/4/couriers/get-couriers-all
Detect courier by tracking number
https://www.aftership.com/docs/api/4/couriers/post-couriers-detect
Trackings
Create a new tracking
https://www.aftership.com/docs/api/4/trackings/post-trackings
Create multiple trackings
(Will be available soon)
Delete a tracking by slug and tracking number
https://www.aftership.com/docs/api/4/trackings/delete-trackings
Delete a tracking by tracking ID
https://www.aftership.com/docs/api/4/trackings/delete-trackings
Get tracking results of multiple trackings
https://www.aftership.com/docs/api/4/trackings/get-trackings
Get tracking results of a single tracking by slug and tracking number
https://www.aftership.com/docs/api/4/trackings/get-trackings-slug-tracking_number
Get tracking results of a single tracking by tracking ID
https://www.aftership.com/docs/api/4/trackings/get-trackings-slug-tracking_number
Update a tracking by slug and tracking number
https://www.aftership.com/docs/api/4/trackings/put-trackings-slug-tracking_number
Update a tracking by tracking ID
https://www.aftership.com/docs/api/4/trackings/put-trackings-slug-tracking_number
Reactivate Tracking by slug and tracking number
https://www.aftership.com/docs/api/4/trackings/post-trackings-slug-tracking_number-retrack
Reactivate Tracking by tracking ID
https://www.aftership.com/docs/api/4/trackings/post-trackings-slug-tracking_number-retrack
Last Check Point
Return the tracking information of the last checkpoint of a single tracking by slug and tracking number
https://www.aftership.com/docs/api/4/last_checkpoint/get-last_checkpoint-slug-tracking_number
Return the tracking information of the last checkpoint of a single tracking by tracking ID
https://www.aftership.com/docs/api/4/last_checkpoint/get-last_checkpoint-slug-tracking_number
Notifications
Create a new notification by slug and tracking number
https://www.aftership.com/docs/api/4/notifications/post-add-notifications
Create a new notification by tracking ID
https://www.aftership.com/docs/api/4/notifications/post-add-notifications
Delete a notification by slug and tracking number.
https://www.aftership.com/docs/api/4/notifications/post-remove-notifications
Delete a notification by tracking ID.
https://www.aftership.com/docs/api/4/notifications/post-remove-notifications
Get notification of a single tracking by slug and tracking number.
https://www.aftership.com/docs/api/4/notifications/get-notifications
Get notification of a single tracking by tracking ID
https://www.aftership.com/docs/api/4/notifications/get-notifications