Skip to content

Happyr/php-api-client

Repository files navigation

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