https://github.com/mrjosh/bestoon-php-client
🐘 Bestoon php client
https://github.com/mrjosh/bestoon-php-client
accounting bestoon php-client
Last synced: about 1 month ago
JSON representation
🐘 Bestoon php client
- Host: GitHub
- URL: https://github.com/mrjosh/bestoon-php-client
- Owner: mrjosh
- License: mit
- Archived: true
- Created: 2017-02-02T17:09:12.000Z (about 9 years ago)
- Default Branch: develop
- Last Pushed: 2017-02-12T10:31:58.000Z (about 9 years ago)
- Last Synced: 2025-10-13T02:41:39.478Z (4 months ago)
- Topics: accounting, bestoon, php-client
- Language: PHP
- Homepage: http://bestoon.ir
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Bestoon php client
A simple PHP client for [Bestoon Project](https://github.com/jadijadi/bestoon)
### Installation
you can install client with composer
```
composer require bestoon/client:'dev-develop'
```
## Usage : Setconfig
You should set your API token key first with instance of client
```php
use Bestoon\Client;
$client = new Client([
'token' => 'YOUR-TOKEN'
]);
```
### Manage stats
You can manage your stats with generalStat method
```php
$stats = $client->generalStat();
var_dump($stats);
```
### Set incom
Set your income with amount and text in arguments
```php
$client->setIncome('1000000','Test');
```
### Set expense
Set your expense with amount and text in arguments
```php
$client->setExpense('1000000','Test');
```
### License
The MIT License (MIT). Please see [License File](LICENSE) for more information.