undeadline/yandex-weather-laravel
Composer 安装命令:
composer require undeadline/yandex-weather-laravel
包简介
Package for Laravel what use yandex weather api.
README 文档
README
Installing guide
The recommended way to install YW is through Composer.
composer require undeadline/yandex-weather-laravel
After composer require you need use this command
php artisan vendor:publish --tag=config
$latitude = 15.8921; $longitude = 82.78821; $params = [ 'lang' => 'ru_RU', // response language 'limit' => 1, // forecast period 'hours' => true, // response is contains horly period 'extra' => true // detailed precipitation forecast ]; $weather = new \Undeadline\YW\YandexWeather($latitude, $longitude, $params); echo $weather->temperature(); // current temperature echo $weather->feelsTemperature(); // current feels temperature echo $weather->icon(); // url for temperature icon
统计信息
- 总下载量: 29
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-14