felixdelval/deckbrew-api

PHP DeckBrew Api

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/felixdelval/deckbrew-api

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

This package is not auto-updated.

Last update: 2025-10-15 15:46:51 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'),
]);