Download the PHP package malvik-lab/brewbuddy-api-client without Composer
On this page you can find all versions of the php package malvik-lab/brewbuddy-api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package brewbuddy-api-client
Brew Buddy API Client
What is Brew Buddy?
Brew Buddy is your companion in beer discovery. Whether you're a passionate homebrewer or a talented developer eager to create innovative applications, he is here to support you.
Explore the vast universe of beers through rich APIs filled with accurate data. From ingredient profiles to sensory characteristics, you'll have access to a wealth of information to enhance your applications or websites.
Installation
Initializing
Client Methods
METHOD | ARGUMENTS |
---|---|
getLanguages | RequestOption $requestOption |
getCountries | RequestOption $requestOption |
getImages | RequestOption $requestOption |
getTypologies | RequestOption $requestOption |
getBreweries | RequestOption $requestOption |
getGlasses | RequestOption $requestOption |
getFermentationMethods | RequestOption $requestOption |
getFoams | RequestOption $requestOption |
getBeers | RequestOption $requestOption |
Basic use
Request Option
The RequestOption class represents request options for API calls. It provides methods to configure pagination, sorting, and filtering options for specific requests.
METHOD | ARGUMENTS | DEFAULT VALUES | DESCRIPTION |
---|---|---|---|
setId | string $id | Set the identifier of the requested object | |
setPage | int $page | 1 | Set the page number of the results |
setLimit | int $limit | 20 | Set the maximum number of results per page |
setSort | string $sort | Set the field to order the results by | |
setOrder | string $order | asc | Set the sorting direction |
addFilterByFullTextSearch | mixed $value | Add a filter for full text search | |
addFilterByExactMatch | string $field, mixed $value | Add a filter for exact match search | |
addFilterByPartialMatch | string $field, mixed $value | Add a filter for partial match search | |
addFilterByLessThanOrEqualValue | string $field, mixed $value | Add a filter for searching based on less than or equal to value | |
addFilterByGreaterThanOrEqualValue | string $field, mixed $value | Aggiunge un filtro per la ricerca basata su valore maggiore o uguale | |
getId | Returns the identifier of the requested object | ||
getPage | Returns the page number of the results | ||
getLimit | Returns the maximum number of results per page | ||
getSort | Returns the field to order the results by | ||
getOrder | Returns the sorting direction | ||
getFilters | Returns the filters for searching results |
Advanced usage
Output example
Running Test
All versions of brewbuddy-api-client with dependencies
guzzlehttp/guzzle Version ^7.8
rakit/validation Version ^1.4
cuyz/valinor Version ^1.11