khanhicetea/kiot-viet-client

A Small PHP Client package for working with KiotViet API

2.0.1 2023-02-07 09:07 UTC

This package is auto-updated.

Last update: 2024-04-07 11:44:10 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.