PHPackages                             epochblue/darksky-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. epochblue/darksky-php

AbandonedArchivedLibrary[API Development](/categories/api)

epochblue/darksky-php
=====================

A PHP wrapper for the DarkSky developer API

v1.0.0(13y ago)61181MITPHPPHP &gt;=5.2.0

Since Oct 22Pushed 11y agoCompare

[ Source](https://github.com/epochblue/darksky-php)[ Packagist](https://packagist.org/packages/epochblue/darksky-php)[ Docs](https://www.github.com/epochblue/darksky-php)[ RSS](/packages/epochblue-darksky-php/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (1)

darksky-php
===========

[](#darksky-php)

**NOTE**: This API wrapper is for an old version of the API and has been superseded. This library is no longer maintained.

A simple PHP wrapper for interacting with the [DarkSky API](https://developer.darkskyapp.com/docs).

Requirements
------------

[](#requirements)

- PHP 5.2.0+
- a DarkSky API key

Installation
------------

[](#installation)

Installing `darksky-php` is simple, and it is recommended that you use [Composer](http://getcomposer.org/) to use it in your project. If you're new to Composer, please see the Composer website for more information on what Composer is and how to use it. Once you have your project set up to use Composer, to include `darksky-php`, add the following to your `composer.json` file:

```
{
    "require": {
        "epochblue/darksky-php": "dev-master"
    }
}
```

With that added, run a `php composer.phar update epochblue/darksky-php` from your project root, and you're ready to go.

Usage
-----

[](#usage)

*All the public methods in the `darksky-php` wrapper return associative arrays*. Below is an example of all the public methods available via this API wrapper. Please refer to the [DarkSky API Documentation](https://developer.darkskyapp.com/docs) for more details about the return values.

```
