Download the PHP package lalamove/php without Composer
On this page you can find all versions of the php package lalamove/php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php
Lalamove Unofficial Client Library for PHP
Library Maintenance
This library is an unoffical library for lalamove api. Currently we are fixing all necessary bug and adding essential features to ensure the lirbary continues to meet your needs in accessing the Lalamove APIs. Non-critical issues will be closed. Any issue may be reopened if it is causing ongoing problem.
Requirements
- PHP 5.5.0 or higher
Installation
You can use Composer
Composer
Follow the install instructions if you do not already have composer installed.
Getting Started
Quotation
The following the code we need to make quotation for SG
Sample Response
Place Order
The Response from the quotation is needed for Place order API to lock the price
Sample Response
Getting Order Information
Once an order is placed, you can query the result of the order every 45s, notice there is a rate limit on our system. DO NOT call too frequently.
To get order information
Sample Response
Getting Driver Information
Getting driver information will help your team to know who will come to pick up the order
Sample Response
Cancel Order
Order can only be cancelled before the order is picked up and within 5 mins after the order is matched. Notice that each city is different for the cancellation buffer time, as long as the you are able to receive 200 as http status code, the cancellation is successful
Sample Response but http code be 200 (success) or fail (non 200 response)
How to Submit a bug, issue or feature request
If you wish to submit a bug, issue, or feature request, then you can find the issue here and you can create one here. For bug reporting, make sure you provide the following information
- Your PHP version and framework (if any)
- Your country and locale
- Clear steps to reproduce the bug (mainly header and body and url)
- A description of what you expected to happen
- A description of what actually happened
Releases
20180126 (v1.0.1)
- By Alpha
- Force body to be object at all condition during json_encode
20170825 (v1.0.0)
- By Draco
- Quotation, Place Order and Cancel API
- Get Order Info, Driver Info and Location API
- Continuous integration setup
- PHP Linter setup