PHPackages                             tania-pets/darksky - 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. tania-pets/darksky

ActiveLibrary[API Development](/categories/api)

tania-pets/darksky
==================

Simple php 7 client for DarkSky API

03PHP

Since Feb 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tania-pets/darksky-php7)[ Packagist](https://packagist.org/packages/tania-pets/darksky)[ RSS](/packages/tania-pets-darksky/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Simple php 7 client for DarkSky API
===================================

[](#simple-php-7-client-for-darksky-api)

DarkSky API docs here:

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

[](#requirements)

- php &gt;=7.1.0

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

[](#installation)

- Add the package to your project `composer require tania-pets/darksky:dev-master `

Usage
-----

[](#usage)

#### Init the client

[](#init-the-client)

##### With preferences

[](#with-preferences)

`$darksKy = new Taniapets\DarkSky\DarkSky('API_KEY', ['units' => 'auto', 'lang' => 'en']);`

##### Set preferences after client initialization

[](#set-preferences-after-client-initialization)

```
use Taniapets\DarkSky\DarkSky;
$darksKy = new DarkSky('API_KEY');
$darksKy->setUnits('auto');
$darksKy->setLang('en');
```

#### Forecast request

[](#forecast-request)

```
$forecast = $darksKy->forecast(40.6211912,22.9285177, ['currently'], 'hourly');```
$forecast->daily(); //get daily data
$forecast->flags(); //get flags
$forecast->getData(); //get all datablocks
```

### Timemachine request

[](#timemachine-request)

Executes concurrent requests for multimple given timestamps

```
$timeMachine = $darksKy->timeMachine(40.6211912,22.9285177, ['1549792109','1549292798'], ['currently']);
$timeMachine['1549792109']->daily();
...
```

##### Todo

[](#todo)

- Add tests
- Add laravel wrapper

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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://avatars.githubusercontent.com/u/811770?v=4)[Tania Petsouka](/maintainers/tania-pets)[@tania-pets](https://github.com/tania-pets)

---

Top Contributors

[![tania-pets](https://avatars.githubusercontent.com/u/811770?v=4)](https://github.com/tania-pets "tania-pets (15 commits)")

### Embed Badge

![Health badge](/badges/tania-pets-darksky/health.svg)

```
[![Health](https://phpackages.com/badges/tania-pets-darksky/health.svg)](https://phpackages.com/packages/tania-pets-darksky)
```

###  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)[emartech/emarsys-magento2-extension

Magento2 integration for the Emarsys Marketing Platform

14273.9k](/packages/emartech-emarsys-magento2-extension)

PHPackages © 2026

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