A Small PHP Client package for working with KiotViet API
Via Composer
$ composer require vienthuong/kiot-viet-client
$client = new VienThuong\KiotVietClient(<YOUR_CLIENT_ID>, <YOUR_CLIENT_SECRET>);
// Fetch access token
$token = $client->fetchAccessToken();
// Fetch list product
$productResource = new ProductResource($client);
$productList = $productResource->list();
Check more in Examples directory, remember to change your credentials in auth.php
Please see CHANGELOG for more information on what has changed recently.
Feel free to create a new merge request into this repository.
If you discover any security related issues, please email levienthuong@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.