vienthuong/kiot-viet-client

A Small PHP Client package for working with KiotViet API

v1.0.0 2020-06-06 20:02 UTC

This package is auto-updated.

Last update: 2024-12-19 19:42:16 UTC


README

Latest Version on Packagist Software License Total Downloads

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.