shiran/weather

A weather SDK.

This package's canonical repository appears to be gone and the package has been frozen as a result.

0.0.2 2019-02-02 07:45 UTC

This package is auto-updated.

Last update: 2019-04-04 03:21:44 UTC


README

A weather SDK..

StyleCI build status

Installing

$ composer require shiran/weather -vvv

使用

配置写在 config/services.php 中:

    .
    .
    .
     'weather' => [
        'key' => env('WEATHER_API_KEY'),
    ],
public function weather(Weather $weather) 
{
    $response = $weather->getLiveWeather('上海');
}

License

MIT