This PHP library is a client to the API at api.happyr.com.
composer require happyr/api-php-client
There is a few mandatory configuration parameters. They are 'identifier' and 'secret'. You will get them both from the Happyr-API website.
use Happyr\ApiClient\HappyrClient;
class MyClass
{
public function myFunc()
{
$api = HappyrClient::create('myApiIdentifier', 'myApiSecret');
$patterns = $api->profilePattern()->index('sv');
}
}