PHP code example of roofr / laravel-weather

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

    

roofr / laravel-weather example snippets

 php
$weather = new Roofr\Weather();
echo $weather->generate('Naples, FL');