happyr/api-php-client

Happyr public API client library.


Keywords
api, client, HappyR
License
MIT

Documentation

Happyr PHP API client

Latest Version Software License Build Status Code Coverage Quality Score Total Downloads

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');
    }
}