forked from PintLabs/PHP-Brewerydb
A PHP library that wraps the Brewerydb.com API
License
liamthegrey/brewerydb-php
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This service is a simple PHP wrapper for the Brewerydb.com API. Usage: $bdb = new Pintlabs_Service_Brewerydb($apikey); $bdb->setFormat('php'); // if you want to get php back. 'xml' and 'json' are also valid options. Then you can call the API: try { // The first argument to request() is the endpoint you want to call // 'brewery/BrvKTz', 'beers', etc. // The third parameter is the HTTP method to use (GET, PUT, POST, or DELETE) $results = $bdb->request('beers', $params, 'GET'); // where $params is a keyed array of parameters to send with the API call. } catch (Exception $e) { $results = array('error' => $e->getMessage()); }
About
A PHP library that wraps the Brewerydb.com API
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- PHP 100.0%