PHP code example of th3mouk / yahoo-weather-api

1. Go to this page and download the library: Download th3mouk/yahoo-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/ */

    

th3mouk / yahoo-weather-api example snippets




use Th3Mouk\YahooWeatherAPI\YahooWeatherAPI;

$yahooWeather = new YahooWeatherAPI();

$yahooWeather->callApiWoeid($woeid = null, $unit = 'c');

$yahooWeather->callApiCityName($name = null, $unit = 'c');

$yahooWeather->callApi($yql = null);