shiran/weather

A weather SDK.

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Maintainers

Package info

github.com/zengshiran/weather

Issues

pkg:composer/shiran/weather

Statistics

Installs: 272

Dependents: 0

Suggesters: 0

Stars: 1

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