2017 © Pedro Peláez
 

library forecast-php

Drop dead simple Dark Sky API wrapper in PHP

image

guhelski/forecast-php

Drop dead simple Dark Sky API wrapper in PHP

  • Sunday, October 16, 2016
  • by guhelski
  • Repository
  • 5 Watchers
  • 40 Stars
  • 38,126 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 0 Open issues
  • 3 Versions
  • 5 % Grown

The README.md

forecast-php

Drop dead simple ~~Forecast.io API v2~~ Dark Sky API wrapper in PHP., (*1)

This lets you get from the Dark Sky API docs to the code as directly as possible., (*2)

PSR friendly and requires nothing. Abstractions not included., (*3)

Installation

Easy breezy using Composer:, (*4)

composer require guhelski/forecast-php

Usage

As simple as calling one method. ```php <?php, (*5)

use Forecast\Forecast;, (*6)

$forecast = new Forecast('YOUR_API_KEY');, (*7)

// Get the current forecast for a given latitude and longitude var_dump($forecast->get('37.8267','-122.423'));, (*8)

// Get the forecast at a given time var_dump($forecast->get('37.8267','-122.423', '2013-05-06T12:00:00-0400'));, (*9)

// Use some optional query parameters var_dump($forecast->get( '37.8267', '-122.423', null, array( 'units' => 'si', 'exclude' => 'flags' ) ) ); ```, (*10)

For more details and all available options check the official documentation., (*11)

The Versions

16/10 2016

dev-master

9999999-dev

Drop dead simple Dark Sky API wrapper in PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

weather forecast forecast.io darksky dark sky darksky.net

26/09 2016

1.1.1

1.1.1.0

Drop dead simple DarkSky.net API v2 wrapper in PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

weather forecast forecast.io darksky darksky.net

23/07 2015

v1.1.0

1.1.0.0

Drop dead simple Forecast.io API v2 wrapper in PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

weather forecast forecast.io