This repository has been archived by the owner on Mar 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,44 @@ | ||
## Bestoon php client | ||
|
||
### Install | ||
### Installation | ||
|
||
you can install client with composer | ||
``` | ||
composer require bestoon/client | ||
``` | ||
``` | ||
|
||
## 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 icome with with amount and text in arguments | ||
```php | ||
$client->income('1000000','Test'); | ||
``` | ||
|
||
### Set expense | ||
Set your expense with icome with with amount and text in arguments | ||
```php | ||
$client->expense('1000000','Test'); | ||
``` | ||
|
||
### License | ||
The MIT License (MIT). Please see [License File](LICENSE) for more information. |