PHPackages                             wjzijderveld/youless-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. wjzijderveld/youless-client

ActiveLibrary[API Development](/categories/api)

wjzijderveld/youless-client
===========================

28PHP

Since Oct 2Pushed 11y ago1 watchersCompare

[ Source](https://github.com/wjzijderveld/youless-client)[ Packagist](https://packagist.org/packages/wjzijderveld/youless-client)[ RSS](/packages/wjzijderveld-youless-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Youless API
===========

[](#youless-api)

[![Build Status](https://camo.githubusercontent.com/9e49af764e456afd72da8906da98f7fe022b36f4f0d0540db6d62d9df96c1a06/68747470733a2f2f7472617669732d63692e6f72672f776a7a696a64657276656c642f796f756c6573732d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wjzijderveld/youless-client)

The goal of this library is to provide a simple API to a [Youless](http://youless.nl) webservice.

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

[](#installation)

```
$ composer install
```

Running the tests
-----------------

[](#running-the-tests)

```
$ ./vendor/bin/phpspec run
```

Usage
-----

[](#usage)

Instantiate the client with a Buzz\\Browser instance and the URL where your youless webservice can be reached.

```
$browser = new Buzz\Browser();
$client = new Wjzijderveld\Youless\Api\Client($browser, 'http://youless.yrl.here');
```

The client has 5 methods for data retrieval:

```
// Request current usage
$client->getRecentData();
// Wjzijderveld\Youless\Api\Response\Recent

// Request data per day for a given month
// (1 - 12, 1 = January, 12 = December)
$client->getDataForMonth(1);
// Wjzijderveld\Youless\Api\Response\History

// Request data per hour for a given day in the last week
// (0 - 6, 0 is today, 6 is 6 days ago)
$client->getDataForDay(1);
// Wjzijderveld\Youless\Api\Response\History

// Request data per 10 minutes for the last 8 hours
// (1 = last 8 hours, 2 = 8 till 16 hours ago, 3 = 16 - 32 hours ago)
$client->getDataFor8Hours(1);
// Wjzijderveld\Youless\Api\Response\History

// Request data per minute for the last 30 minutes
// (1 = last 30 minutes, 2 = 30 minutes till 60 minutes ago)
$client->getDataFor30MInutes(1);
// Wjzijderveld\Youless\Api\Response\History
```

The `Recent` object provides data for the current usage and the total usage.

The `History` object provides the values in watt, the delta in seconds between each value and the date of the first measurement for this request.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/wjzijderveld-youless-client/health.svg)

```
[![Health](https://phpackages.com/badges/wjzijderveld-youless-client/health.svg)](https://phpackages.com/packages/wjzijderveld-youless-client)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

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

GitHub API v3 client

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

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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