KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
darksky
★ 16
Open GitHub ↗
A PHP wrapper for Dark Sky API
Download README (.md)
Explore Similar Repositories
dark-sky-core
:
A .NET Standard Library for using the Dark Sky API.
forecast-php
:
Drop dead simple Dark Sky API wrapper in PHP.
Overcast
:
An easy to use API for Dark Sky (formerly forecast.io)
SimplerWeather
:
jQuery Weather Plugin using Dark Sky –– Fork of simpleWeather
WXKDarkSky
:
A pure-Swift Codable layer over the Dark Sky API.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
darksky
?
Download (.md)
# Darksky A simple wrapper for Dark Sky API [](https://packagist.org/packages/darksky/darksky) [](https://travis-ci.org/iranianpep/darksky) [](https://scrutinizer-ci.com/g/iranianpep/darksky/build-status/master) [](https://codeclimate.com/github/iranianpep/darksky/maintainability) [](https://codeclimate.com/github/iranianpep/darksky/test_coverage) [](https://scrutinizer-ci.com/g/iranianpep/darksky/?branch=master) [](https://scrutinizer-ci.com/g/iranianpep/darksky/?branch=master) [](https://codeclimate.com/github/iranianpep/darksky) [](https://packagist.org/packages/darksky/darksky) [](https://styleci.io/repos/96892746) [](https://www.codacy.com/app/iranianpep/darksky?utm_source=github.com&utm_medium=referral&utm_content=iranianpep/darksky&utm_campaign=Badge_Grade) [](https://packagist.org/packages/darksky/darksky) [](https://raw.githubusercontent.com/iranianpep/darksky/master/LICENSE) ## Server Requirements - PHP >= 7.0.0 ## Usage - Get the API key from https://darksky.net/dev - Install this package in your project:<br> `composer require darksky/darksky` - To forecast: ```php use Darksky\Darksky; try { $result = (new Darksky('API_KEY'))->forecast('LAT', 'LONG'); } catch(DarkskyException $e) { // handle the exception } catch(Exception $e) { // handle the exception } ``` - To use the time machine: ```php use Darksky\Darksky; try { $result = (new Darksky('API_KEY'))->timeMachine('LAT', 'LONG', 'UNIX_TIME'); } catch(DarkskyException $e) { // handle the exception } catch(Exception $e) { // handle the exception } ```