happyr/api-php-client

Happyr public API client library.

2.1.1 2018-01-23 08:23 UTC

This package is auto-updated.

Last update: 2024-11-25 07:01:15 UTC


README

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