PHPackages                             k-ko/discovergy-oauth1 - 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. k-ko/discovergy-oauth1

ActiveLibrary[API Development](/categories/api)

k-ko/discovergy-oauth1
======================

Inexogy (former Discovergy) OAUTH 1.0 API client

v5.0.1(4mo ago)011MITPHPPHP &gt;=7.0

Since Apr 16Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/K-Ko/Discovergy-OAuth1)[ Packagist](https://packagist.org/packages/k-ko/discovergy-oauth1)[ Docs](https://github.com/K-Ko/discovergy-oauth1)[ RSS](/packages/k-ko-discovergy-oauth1/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (18)Used By (0)

Inexogy-OAuth1
==============

[](#inexogy-oauth1)

Former Discovergy
-----------------

[](#former-discovergy)

PHP classes to establish a OAuth1 session and access for [Inexogy](https://inexogy.com/) [API](https://api.inexogy.com/docs/).
------------------------------------------------------------------------------------------------------------------------------

[](#php-classes-to-establish-a-oauth1-session-and-access-for-inexogy-api)

### Basic usage

[](#basic-usage)

```
use Exception;
use Inexogy\API1 as InexogyAPI;

try {
    $api = new InexogyAPI(
        // Required parameters
        $client,     // Your own application identifier
        $identifier, // Login for the Inexogy portal, mostly your email address
        $secret
    );

    // Use cache, system temp dir.
    $api->setCache(true);
    // Use your own cache dir.
    $api->setCache('/path/to/your/cache/dir');
    // If cache is used, default TTL is 1 day

    // Cache for 1 hour
    $api->setTTL(3600);

    // Authorize
    $api->init();
} catch (Exception $e) {
    die($e->getMessage());
}
```

The API class authorizes at the API and tries up to 5 times in case of an error.

With the `$api` instance you can now query the data.

At the moment the `GET` endpoints are implemented (via `__call()`):

#### Metadata

[](#metadata)

- `/devices`
- `/field_names`

#### Measurements

[](#measurements)

- `/readings`
- `/last_reading`
- `/statistics`
- `/load_profile`
- `/raw_load_profile`

#### Disaggregation

[](#disaggregation)

- `/disaggregation`
- `/activities`

#### Website Access Code

[](#website-access-code)

- `/website_access_code`

#### Virtual meters

[](#virtual-meters)

- `/virtual_meters`

Naming convention is: endpoint `/snake_case` must be called as `getCamelCase()`.

`getMeters()` is separate, with lazy load and caching in file.

All methods expect the same required (and optional) paramters as described in the [API docs](https://api.inexogy.com/docs/).

So the call have to be

```
$last_reading = $api->getMeter('YOUR-METER-ID')->getLastReading();
```

With optional paramters a call would be

For example the endpoint `/readings` expect a `resolution`.

```
$readings = $api->getMeter('YOUR-METER-ID')->getReadings([ 'resolution' => $resolution, 'from' => $from ]);
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance74

Regular maintenance activity

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~129 days

Recently: every ~433 days

Total

17

Last Release

146d ago

Major Versions

v1.3.0 → v2.0.12020-11-03

v2.2.0 → v3.0.02020-12-06

v3.3.2 → v4.0.02025-12-15

v4.0.0 → v5.0.02025-12-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/b147e5fe1bf52c9cf3646306e97c84f56f17aa34a45f02547c231a48e5a4c211?d=identicon)[K-Ko](/maintainers/K-Ko)

---

Top Contributors

[![K-Ko](https://avatars.githubusercontent.com/u/327396?v=4)](https://github.com/K-Ko "K-Ko (26 commits)")

---

Tags

apiapi-clientdiscovergyapioauth1DiscovergyInexogy

### Embed Badge

![Health badge](/badges/k-ko-discovergy-oauth1/health.svg)

```
[![Health](https://phpackages.com/badges/k-ko-discovergy-oauth1/health.svg)](https://phpackages.com/packages/k-ko-discovergy-oauth1)
```

###  Alternatives

[stevenmaguire/yelp-php

A php client for consuming Yelp API

57396.1k](/packages/stevenmaguire-yelp-php)[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

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