PHP code example of baspa / buienradar-php-api

1. Go to this page and download the library: Download baspa/buienradar-php-api 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/ */

    

baspa / buienradar-php-api example snippets


use Baspa\Buienradar\Buienradar;

$buienradar = new Buienradar();

$forecast = $buienradar->forecast()->report();

$forecast = $buienradar->forecast()->shortTerm();

$forecast = $buienradar->forecast()->longTerm();

$forecast = $buienradar->forecast()->forFiveDays();

$forecast = $buienradar->forecast()->forDay(1);

use Baspa\Buienradar\Enum\MeasuringStation;

$forecast = $buienradar->actualForecastForStation(MeasuringStation::VOLKEL);
bash
composer