PHPackages                             deboorn/xively-api - 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. deboorn/xively-api

ActiveLibrary

deboorn/xively-api
==================

PHP API Client for Xively Api

v1.1.2(10y ago)11915CC BY-NC 3.0PHPPHP &gt;=5.3.0

Since Oct 18Pushed 10y ago1 watchersCompare

[ Source](https://github.com/deboorn/xively-api)[ Packagist](https://packagist.org/packages/deboorn/xively-api)[ Docs](https://github.com/deboorn/xively-api)[ RSS](/packages/deboorn-xively-api/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

### Xively-Api

[](#xively-api)

- PHP 5 Chainable API Implementation of Xively Api
- License: Creative Commons Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0)
- These files are Not officially supported by Xively (LogMeIn).
- Questions regarding this software should be directed to .

How to Install
--------------

[](#how-to-install)

Install the `deboorn/xively-api` package

```
$ composer require deboorn/xively-api
```

Example of Usage
----------------

[](#example-of-usage)

```
$xi = new \Xively\Api('your api key');

// view api resource triggers
var_dump($xi->paths);

// example - json get feeds
$r = $xi->feeds()->list()->get();
var_dump($r);

// example - xml get feeds
$xml = $xi->xml()->feeds()->list()->get();
var_dump($xml);

// example - csv get feeds
$csv = $xi->csv()->feeds()->list()->get();
var_dump($csv);

// example - with custom exception
try {
    $r = $xi->feeds()->list()->get();
} catch (\Xively\Exception $e) {
    die($e->getMessage());
}

// example - get feeds by criteria
$r = $xi->feeds()->read(array(
    'per_page' => 10,
    'page'     => 5,
    'tag'      => 'temperature',
))->get();
var_dump($r);

// example - same as above with iteration
$r = $xi->feeds()->read(array('per_page' => 10, 'page' => 5, 'tag' => 'temperature',))->get();
echo "Total Results: {$r->totalResults}\n\n";
foreach ($r->results as $row) {
    print_r($row);
}

// example - feed used in examples below

$r = $xi->feeds()->read(array('per_page' => 1))->get();
$feed = current($r->results);

// example - grab feed data by range
$r = $xi->feeds($feed->id)->range(array(
    'start'     => date('c', strtotime('-10 days')),
    'end'       => date('c', strtotime('-1 hour')),
    'time_unit' => 'hours',
))->get();
var_dump($r);

// example - grab feed's 1st data stream
$datastream = current($feed->datastreams);

// example - pull data from stream by range
$r = $xi->feeds($feed->id)->datastreams($datastream->id)->range(array(
    'start'     => date('c', strtotime('-10 days')),
    'end'       => date('c', strtotime('-1 hour')),
    'time_unit' => 'hours',
))->get();
var_dump($r);

// example - push data to stream
$r = $xi->feeds()->read(array(
    'user' => 'deboorn',
))->get();

//feeds(id)->datastreams(id)->update(body)
$feed = $r->results[1];
$dataStream = $feed->datastreams[0];
$r = $xi->feeds($feed->id)->datastreams($dataStream->id)->update(array(
    'version'     => '1.0.0',
    'datastreams' => array(
        array(
            'id'         => $dataStream->id,
            'datapoints' => array(
                array('at' => date('c'), 'value' => rand(1, 10)),
            ),
        ),
    ),
))->get();

// ... create your own chain ... see paths in json file for complete triggers
```

###  Health Score

28

↑

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

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 ~0 days

Total

2

Last Release

3808d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/77820104cf95da04b1e59ca8c04ad0a2eb1706a6f87401b8f58e023083db9182?d=identicon)[daniel.boorn](/maintainers/daniel.boorn)

---

Top Contributors

[![deboorn](https://avatars.githubusercontent.com/u/1401839?v=4)](https://github.com/deboorn "deboorn (9 commits)")

---

Tags

logmeinxivelydeboorn

### Embed Badge

![Health badge](/badges/deboorn-xively-api/health.svg)

```
[![Health](https://phpackages.com/badges/deboorn-xively-api/health.svg)](https://phpackages.com/packages/deboorn-xively-api)
```

###  Alternatives

[dalpras/oauth2-gotowebinar

LogMeIn GoToWebinar OAuth 2.0 Client Provider for the PHP League's OAuth 2.0 Client

1243.7k](/packages/dalpras-oauth2-gotowebinar)

PHPackages © 2026

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