https://github.com/andersevenrud/1881
API Library for 1881
https://github.com/andersevenrud/1881
Last synced: over 1 year ago
JSON representation
API Library for 1881
- Host: GitHub
- URL: https://github.com/andersevenrud/1881
- Owner: andersevenrud
- Created: 2017-06-23T10:17:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-23T13:58:36.000Z (almost 9 years ago)
- Last Synced: 2024-10-15T17:47:51.688Z (about 2 years ago)
- Language: PHP
- Homepage: https://developer.1881.no/hc/no
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API Library for 1881
A simple PHP library to communicate with 1881's API.
Uses JWT and Guzzle.
**This library is not associated with Digitale Medier or 1881 in any way.**
## Installation
```
composer require andersevenrud/1881
```
## Examples
Supports all API methods provided, example to look up person:
```php
use DM1881\DM1881;
$client = new DM1881([
'username' => 'dummy',
'client_id' => 'Dummy',
'secret' => 'hash'
]);
var_dump($client->searchPerson('ola bull'));;
```
## Changelog
* **0.5.6** - Updated dependencies
* **0.5.5** - Added first() and eq() to result class
* **0.5.4** - Bugfixes
* **0.5.3** - Bugfixes
* **0.5.2** - Updated composer.json
* **0.5.1** - Updated documentation
* **0.5.0** - Initial release
## License
MIT