PHPackages                             api-client-darsky/darksky-client - 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. api-client-darsky/darksky-client

AbandonedArchivedLibrary[API Development](/categories/api)

api-client-darsky/darksky-client
================================

Dark sky simple api client

30PHP

Since Sep 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/jorgik1/darksky-client)[ Packagist](https://packagist.org/packages/api-client-darsky/darksky-client)[ RSS](/packages/api-client-darsky-darksky-client/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Darksky
=======

[](#darksky)

[![](https://camo.githubusercontent.com/2164b6a00f8ed3c8aa8b33a2365150dcfcb97bcc7ab5099171e1eb3d42d34cb6/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6a6f7267696b315f6461726b736b792d636c69656e74266d65747269633d616c6572745f737461747573)](https://camo.githubusercontent.com/2164b6a00f8ed3c8aa8b33a2365150dcfcb97bcc7ab5099171e1eb3d42d34cb6/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6a6f7267696b315f6461726b736b792d636c69656e74266d65747269633d616c6572745f737461747573)

A simple async client for [Dark Sky API](https://darksky.net)

Server Requirements
-------------------

[](#server-requirements)

- PHP &gt;= 7.1

Install
-------

[](#install)

- Get the API key from
- Install this package in your project:
     `composer require api-client-darsky/darksky-client`

Quickstart example
------------------

[](#quickstart-example)

Once [installed](#install), you can use the following code to access a api server and get some weather data:

```
use ApiClients\Client\DarkSkyClient\AsyncClient;
use React\EventLoop\Factory;
use function ApiClients\Foundation\resource_pretty_print;

require dirname(__DIR__) . DIRECTORY_SEPARATOR . 'vendor/autoload.php';
$loop = Factory::create();
$latitude = '37.8267';
$longitude = '-122.4233';
$client = AsyncClient::create($loop, require 'resolve_token.php');
$client->fetch( $latitude, $longitude)
  ->done(function (ApiClients\Client\DarkSkyClient\Resource\ResponseInterface $response) {
    resource_pretty_print($response);
  });
$loop->run();
```

See also the [examples](examples).

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10710213?v=4)[Yurii Stenin](/maintainers/jorgik1)[@jorgik1](https://github.com/jorgik1)

---

Top Contributors

[![jorgik1](https://avatars.githubusercontent.com/u/10710213?v=4)](https://github.com/jorgik1 "jorgik1 (8 commits)")

---

Tags

phpphp-api-clientsphp7reactreactphp

### Embed Badge

![Health badge](/badges/api-client-darsky-darksky-client/health.svg)

```
[![Health](https://phpackages.com/badges/api-client-darsky-darksky-client/health.svg)](https://phpackages.com/packages/api-client-darsky-darksky-client)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
