PHP code example of bioudi / laravel-meta-weather-api

1. Go to this page and download the library: Download bioudi/laravel-meta-weather-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/ */

    

bioudi / laravel-meta-weather-api example snippets


'providers' => [
	// ...

	Bioudi\LaravelMetaWeatherApi\WeatherserviceProvider::class
]

use Bioudi\LaravelMetaWeatherApi\Weather;
$weather = new Weather();

$weather->getByCityName('casablanca');

$weather->getByCityName('london', '2018/03/03');

$weather->getByCoordinates(36.96, -122.02);

$weather->getByCoordinates(36.96, -122.02, '2018/01/01');