PHP code example of alexjustesen / php-untappd

1. Go to this page and download the library: Download alexjustesen/php-untappd library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

alexjustesen / php-untappd example snippets


$untappd = new Untappd();


$request = new GetBeer('beer-id-goes-here');

$response = $untappd->send($request);

$response->json();

$request = new GetBeer('beer-id-goes-here');

$response = $untappd->send($request);

$request = new SearchBeer('brewery name or beer name string');

$response = $untappd->send($request);

composer