This pacakge provides an easy connection to the Open Brewery DB project for PHP and Laravel applications.
Open Brewery DB is a free dataset and API with public information on breweries, cideries, brewpubs, and bottleshops. The goal of Open Brewery DB is to maintain an open-source, community-driven dataset and provide a public API. It is our belief that public information should be freely accessible for the betterment of the beer community and the happiness of web developers and data analysts.
You can install the package via composer:
composer require alexjustesen/laravel-openbrewerydb-api
You can publish the config file with:
php artisan vendor:publish --tag="laravel-openbrewerydb-api-config"
use AlexJustesen\OpenbrewerydbApi\OpenbrewerydbApi;
$request = OpenbrewerydbApi::autoComplete('broad');
$response = $request->json();
use AlexJustesen\OpenbrewerydbApi\OpenbrewerydbApi;
$request = OpenbrewerydbApi::get('broad-brook-brewing-company-suffield');
$response = $request->json();
use AlexJustesen\OpenbrewerydbApi\OpenbrewerydbApi;
$request = OpenbrewerydbApi::list();
$response = $request->json();
use AlexJustesen\OpenbrewerydbApi\OpenbrewerydbApi;
$request = $request = OpenbrewerydbApi::search('broad');
$response = $request->json();
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.