PHP code example of naughtonium / laravel-dark-sky

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

    

naughtonium / laravel-dark-sky example snippets


Naughtonium\LaravelDarkSky\LaravelDarkSkyServiceProvider::class,

'DarkSky' => \Naughtonium\LaravelDarkSky\Facades\DarkSky::class,

DarkSky::location(lat, lon)->excludes(['minutely','hourly', 'daily', 'alerts', 'flags'])->get();
DarkSky::location(lat, lon)->

->currently()
->minutely()
->hourly()
->daily()
->flags()

DarkSky::location(lat, lon)->hourly()
DarkSky::location(lat, lon)->
 php
DarkSky::location(lat, lon)->get();
 php
DarkSky::location(lat, lon)->atTime(timestamp)->get();
 php
DarkSky::location(lat, lon)->language(lang)->get();
 php
DarkSky::location(lat, lon)->units(units)->get();
 php
DarkSky::location(lat, lon)->extend()->get();