-
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
1 parent
1313cf1
commit 6d9b0cd
Showing
2 changed files
with
34 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
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,2 +1,34 @@ | ||
# wizall-api-client-php | ||
# wizall-api-client | ||
|
||
[![Latest Stable Version](https://img.shields.io/github/v/release/brokeyourbike/wizall-api-client-php)](https://github.com/brokeyourbike/wizall-api-client-php/releases) | ||
[![Total Downloads](https://poser.pugx.org/brokeyourbike/wizall-api-client/downloads)](https://packagist.org/packages/brokeyourbike/wizall-api-client) | ||
[![Maintainability](https://api.codeclimate.com/v1/badges/1b04658a54cfb29e4896/maintainability)](https://codeclimate.com/github/brokeyourbike/wizall-api-client-php/maintainability) | ||
[![Test Coverage](https://api.codeclimate.com/v1/badges/1b04658a54cfb29e4896/test_coverage)](https://codeclimate.com/github/brokeyourbike/wizall-api-client-php/test_coverage) | ||
|
||
Wizall API client for PHP | ||
|
||
## Installation | ||
|
||
```bash | ||
composer require brokeyourbike/wizall-api-client | ||
``` | ||
|
||
## Usage | ||
|
||
```php | ||
use BrokeYourBike\Wizall\Client; | ||
use BrokeYourBike\Wizall\Interfaces\ConfigInterface; | ||
|
||
assert($config instanceof ConfigInterface); | ||
assert($httpClient instanceof \GuzzleHttp\ClientInterface); | ||
assert($psrCache instanceof \Psr\SimpleCache\CacheInterface); | ||
|
||
$apiClient = new Client($config, $httpClient, $psrCache); | ||
$apiClient->getAuthToken(); | ||
``` | ||
|
||
## Authors | ||
- [Ivan Stasiuk](https://github.com/brokeyourbike) | [Twitter](https://twitter.com/brokeyourbike) | [LinkedIn](https://www.linkedin.com/in/brokeyourbike) | [stasi.uk](https://stasi.uk) | ||
|
||
## License | ||
[Mozilla Public License v2.0](https://github.com/brokeyourbike/wizall-api-client-php/blob/main/LICENSE) |