wadday / openweather by wadday

OpenWeatherMap api tweak for Laravel
169
0
2
Package Data
Maintainer Username: wadday
Maintainer Contact: iwadday@gmail.com (Abdullah Waheed)
Package Create Date: 2016-07-05
Package Last Update: 2016-07-07
Language: PHP
License: MIT
Last Refreshed: 2025-02-13 15:15:47
Package Statistics
Total Downloads: 169
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

openweather

Simple APi Tweaks from OpenWeatherMap.

##Installation

Via Composer

$ composer require wadday/openweather:dev-master

##Service Provider 'Wadday\Openweather\OpenweatherServiceProvider'

##Facade 'Openweather' => 'Wadday\Openweather\Facades\Openweather'

Usage

Get current weather.

use Openweather;

$data = Openweather::get(1); //simple way formated for website top ribbon

CSS Icon (with weathericons.io)

PNG OWM default icons

#Optional Requirements

222 Weather Themed Icons and CSS

Weather Icons is the only icon font and CSS with 222 weather themed icons, ready to be dropped right into Bootstrap, or any project that needs high quality weather, maritime, and meteorological based icons!

Get started at http://weathericons.io!

Icon Preview

Basic Usage Default icons

Place the 5 font files and the main weather-icons.min.css file in your project, with the assumption that the fonts are located up ../ from your CSS directory.

The icons are displayed by using an i element and adding the base class wi and then the icon class you want, such as day-sunny. This then looks like <i class="wi wi-day-sunny"></i>.

To add a modifier, include the class you want after the icon name, which looks like <i class="wi wi-day-sunny wi-flip-vertical"></i>. You can flip, rotate, or add a fixed width. See it all at http://weathericons.io.

Credit

The icon designs are originally by Lukas Bischoff. Icon art for v1.1 forward, HTML, Less, and CSS are by me (Erik).

Licensing