2017 © Pedro Peláez
 

library picnik

A modern, Composer and PSR-4 compatible PHP library for interfacing with the Wordnik API.

image

alanly/picnik

A modern, Composer and PSR-4 compatible PHP library for interfacing with the Wordnik API.

  • Thursday, February 12, 2015
  • by alanly
  • Repository
  • 0 Watchers
  • 0 Stars
  • 759 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Picnik

, (*1)

Picnik is a simple PHP client for the Wordnik API, that is Composer and PSR-4 compatible., (*2)

Its only dependencies are the GuzzleHttp client and PHP >= 5.4., (*3)

API Coverage

The initial goal is to support the word selection of methods., (*4)

Currently, the /word.json/{word} and /word.json/{word}/definitions API methods are implemented., (*5)

Usage

In order to use the client, you will first need to obtain an API key from Wordnik., (*6)

The client is pretty simple to use,, (*7)

$client = new Picnik\Client;
$client->setApiKey('foobar');

$definitions = $client->wordDefinitions('cat')
                      ->limit(1)
                      ->includeRelated(false)
                      ->useCanonical(true)
                      ->get();

var_dump( count($definitions) );
// int(1)

var_dump( $definitions[0]->text )
// string(189) "A small carnivorous mammal (Felis catus or F. domesticus)
// domesticated since early times as a catcher of rats and mice and as a pet
// and existing in several distinctive breeds and varieties."

License

This library is released under the MIT license. For details, you can refer to the full license document., (*8)

The Versions

12/02 2015

dev-master

9999999-dev https://github.com/alanly/picnik

A modern, Composer and PSR-4 compatible PHP library for interfacing with the Wordnik API.

  Sources   Download

MIT

The Requires

 

The Development Requires

12/02 2015

dev-develop

dev-develop https://github.com/alanly/picnik

A modern, Composer and PSR-4 compatible PHP library for interfacing with the Wordnik API.

  Sources   Download

MIT

The Requires

 

The Development Requires

06/01 2015

v0.1.5

0.1.5.0 https://github.com/alanly/picnik

A modern, Composer and PSR-4 compatible PHP library for interfacing with the Wordnik API.

  Sources   Download

MIT

The Requires

 

The Development Requires

03/01 2015

v0.1.4

0.1.4.0 https://github.com/alanly/picnik

A modern, Composer and PSR-4 compatible PHP library for interfacing with the Wordnik API.

  Sources   Download

MIT

The Requires

 

The Development Requires

23/12 2014

v0.1.3

0.1.3.0 https://github.com/alanly/picnik

A modern, Composer and PSR-4 compatible PHP library for interfacing with the Wordnik API.

  Sources   Download

MIT

The Requires

 

The Development Requires

23/12 2014

v0.1.2

0.1.2.0 https://github.com/alanly/picnik

A modern, Composer and PSR-4 compatible PHP library for interfacing with the Wordnik API.

  Sources   Download

MIT

The Requires

 

The Development Requires

21/12 2014

v0.1.1

0.1.1.0 https://github.com/alanly/picnik

A modern, Composer and PSR-4 compatible PHP library for interfacing with the Wordnik API.

  Sources   Download

MIT

The Requires

 

The Development Requires

20/12 2014

v0.1

0.1.0.0 https://github.com/alanly/picnik

A modern, Composer and PSR-4 compatible PHP library for interfacing with the Wordnik API.

  Sources   Download

MIT

The Requires

 

The Development Requires