felixdelval/deckbrew-api

PHP DeckBrew Api

dev-master 2016-05-20 21:26 UTC

This package is not auto-updated.

Last update: 2024-05-29 09:04:56 UTC


README

travis-ci Coverage Status

A PHP wrapping of the DeckBrew Api. Find their documentation (here)[https://deckbrew.com/api/].

Usage

You can instantiate the client either via the factory:

$client = DeckBrew\ClientFactory::create();

Or you can create it directy injecting your own Guzzle Http Client

$client = new DeckBrew\Client($httpClient);

To make a request :

use DeckBrew\Criteria;
use DeckBrew\Criteria\Specifications as Spec;

$client->searchCard(new Criteria\CardSearch([
    Spec\WithName('some name'),
]);