happyr / api-php-client
Happyr public API client library.
Installs: 3 122
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 2
Open Issues: 1
Requires
- php: ^5.6 || ^7.0
- php-http/client-common: ^1.1
- php-http/discovery: ^1.0
- php-http/httplug: ^1.0
- webmozart/assert: ^1.2
Requires (Dev)
- guzzlehttp/psr7: ^1.3
- nyholm/nsa: ^1.0
- php-http/curl-client: ^1.6
- php-http/message: ^1.0
- php-http/message-factory: ^1.0.2
- phpunit/phpunit: ^5.6
README
This PHP library is a client to the API at api.happyr.com.
Installation
composer require happyr/api-php-client
Configuration
There is a few mandatory configuration parameters. They are 'identifier' and 'secret'. You will get them both from the Happyr-API website.
Usage
use Happyr\ApiClient\HappyrClient; class MyClass { public function myFunc() { $api = HappyrClient::create('myApiIdentifier', 'myApiSecret'); $patterns = $api->profilePattern()->index('sv'); } }