Download the PHP package stdmedoth/lalamove-php-sdk without Composer
On this page you can find all versions of the php package stdmedoth/lalamove-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stdmedoth/lalamove-php-sdk
More information about stdmedoth/lalamove-php-sdk
Files in stdmedoth/lalamove-php-sdk
Package lalamove-php-sdk
Short Description The LalamovePHP-SDK repository is the ideal solution for PHP developers looking to integrate Lalamove's on-demand delivery functionality into their applications.
License GPL-2.0-or-later
Informations about the package lalamove-php-sdk
LalamovePHP-SDK
The LalamovePHP-SDK is a PHP library that provides an easy-to-use interface for developers to connect to Lalamove's on-demand delivery service. With this SDK, developers can authenticate, create quotations, create orders, and retrieve order details.
Authentication
To use the LalamovePHP-SDK, you must first authenticate with Lalamove's API. You can obtain your API credentials from the Lalamove developer portal. Once you have your credentials, you can create an instance of the SDK and set your API key, API secret, market, and environment:
Creating a Quotation
To create a quotation, you need to provide the following information:
- serviceType: Type of service. This parameter is required and can be obtained from the services endpoint.
- stops: An array of stops objects containing pickup and dropoff information, including the location coordinates (latitude and longitude) and the address of each stop.
- language: Language used to return the quotation. This parameter is optional and can be set to en_US by default.
- item: An object containing information about the item being delivered, including quantity, weight, categories, and handling instructions. This parameter is optional.
Here's an example code snippet to create a quotation: