trungnt309193/lazop-sdk-php

A Lazada PHP SDK for Laravel

v2.4.0 2021-11-18 11:06 UTC

This package is auto-updated.

Last update: 2024-05-18 16:31:16 UTC


README

Usage of this library is also available at Lazada Open API

Version

Version 2.4.0

Requirements

PHP SDK requires PHP 5 or newer version

Composer Installation

Run the following command:

composer require trungnt309193/lazop-sdk-php

Usage

Sample usage:

use trungnt309193\Lazada\LazopClient;
use trungnt309193\Lazada\LazopRequest;

...
$c = new LazopClient('https://api.lazada.test/rest', '${appKey}', '${appSecret}');
$request = new LazopRequest('/mock/api/get');
$request->addApiParam('api_id',1);
$request->addHttpHeaderParam('cx','test');
    
var_dump($c->execute($request));
...