vienthuong / kiot-viet-client
A Small PHP Client package for working with KiotViet API
v1.0.0
2020-06-06 20:02 UTC
Requires
- php: >7.0
- ext-json: *
- guzzlehttp/guzzle: ^6.5
Requires (Dev)
- phpunit/phpunit: >=8.0
- squizlabs/php_codesniffer: ^3.0
- symplify/easy-coding-standard: ^7.2
This package is auto-updated.
Last update: 2024-11-19 19:29:21 UTC
README
A Small PHP Client package for working with KiotViet API
Install
Via Composer
$ composer require vienthuong/kiot-viet-client
Usage
$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
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Feel free to create a new merge request into this repository.
Security
If you discover any security related issues, please email levienthuong@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.