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

20PHP

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 4w 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 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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://www.gravatar.com/avatar/a39c5e5d7ec37532e5b7c21ecaac9486cf128dc3dc8a5cb9347d3697e2646444?d=identicon)[jorgik1](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M474](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M95](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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