kami/icobench-bundle

IcoBench API Client Bundle

dev-master 2018-06-15 09:31 UTC

README

This bundle provides Symfony wrapper for icobench-client

Installation

composer require kami/icobench-bundle
<?php
// app/AppKernel.php

$bundles = [
    ...
    new Kami\IcoBenchBundle\KamiIcoBenchBundle(),
    ...
]

Configuration

kami_icobench:
    private_key: "your_private_key"
    public_key: "your_public_key"
    guzzle_options: ~

Usage

<?php

/** @var \Kami\IcoBench\Client $client */
$client = $this->get('kami.icobench.client');

$client->getIco($id, $data);
$client->getIcos($type, $data);
$client->getOther($type);
$client->getPeople($type, $data);

Testing

vendor/bin/phpunit