2017 © Pedro Peláez
 

library bierdopje-php

Wrapper for the Bierdopje.com API

image

mattiasdelang/bierdopje-php

Wrapper for the Bierdopje.com API

  • Friday, January 22, 2016
  • by mattiasdelang
  • Repository
  • 2 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

bierdopje-php Build Status

PHP wrapper for Bierdopje API, (*1)

Install

Simple: composer require mattiasdelang/bierdopje-php, (*2)

How to use

Environment variable

Make sure you have a BD_APIKEY environment variable set., (*3)

If your project: - uses a .env file, add it there. - uses Apache you can add SetEnv BD_APIKEY apikeystring to your vhost. - runs on Linux you can execute export BD_APIKEY=apikeystring - runs on Windows add it to your environment., (*4)

HTTP User-Agent

Bierdopje requires all automated tools to specify a custom User-Agent when performing HTTP requests. So give your Http client a default User-Agent before passing it to the constructor., (*5)

use mattiasdelang\Bierdopje as BierdopjeApi;

$httpClient = new \GuzzleHttp\Client([
  'headers' => [
    'User-Agent' => 'projectname/0.0.1'
  ]
]);

$bierdopje = new BierdopjeApi($httpClient);

The Versions

22/01 2016

dev-master

9999999-dev

Wrapper for the Bierdopje.com API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar mattiasdelang