PHP code example of rugaard / pollen
1. Go to this page and download the library: Download rugaard/pollen 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/ */
rugaard / pollen example snippets
'providers' => [
Rugaard\Pollen\Providers\Laravel\ServiceProvider::class,
]
# Instantiate the Pollen client.
$pollen = new \Rugaard\Pollen\Pollen;
# Copenhagen pollen station.
$measurements = $pollen->get('copenhagen');
new Pollen(?Client $httpClient);
get(string $stationCode);