Skip to content

Commit

Permalink
chore: example
Browse files Browse the repository at this point in the history
  • Loading branch information
brokeyourbike committed Feb 8, 2024
1 parent 1313cf1 commit 6d9b0cd
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2024, Ivan Stasiuk
Copyright (c) 2024, Ivan Stasiuk <ivan@stasi.uk> (stasi.uk)

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
34 changes: 33 additions & 1 deletion README.md
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)

0 comments on commit 6d9b0cd

Please sign in to comment.