angelcharly / weather
1.0.3
2016-05-26 20:10 UTC
Requires
- infrajs/ans: ~1
- infrajs/cache: ~1
- infrajs/router: ~1
- infrajs/template: ~1
This package is not auto-updated.
Last update: 2026-03-01 03:42:40 UTC
README
Demo
Установка
Установка через composer.
{
"require": {
"angelcharly/weather": "~1"
}
}
Использование
$html = \angelcharly\weather\Weather::getHtml(); echo $html;
Необходимо создать в корне вашего сайта фаил .infra.json
{
"weather":{
"city":"Tolyatti",
"key": "там",
}
}
На сайте openweathermap.org можно посмотреть city и key.
Требование
Требуется php от 5.4. Требуется composer, с подключенным vendor/autoload.php
Тестирование
Откройте в браузере /vendor/angelcharly/weather/tester.php