kami/icobench-bundle

IcoBench API Client Bundle

Installs: 2 175

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

v1.0 2018-06-15 09:31 UTC

This package is auto-updated.

Last update: 2024-10-29 04:14:49 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