PHPackages                             amara/onehydra - 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. amara/onehydra

AbandonedLibrary[API Development](/categories/api)

amara/onehydra
==============

A library for working with the OneHydra API

v0.4.1(8y ago)29.4k[1 PRs](https://github.com/AmaraLiving/php-onehydra/pulls)1MITPHP &gt;=5.5.0,&lt;8.0

Since Feb 2Compare

[ Source](https://github.com/AmaraLiving/php-onehydra)[ Packagist](https://packagist.org/packages/amara/onehydra)[ RSS](/packages/amara-onehydra/feed)WikiDiscussions Synced 2d ago

READMEChangelog (6)Dependencies (2)Versions (8)Used By (1)

amara/onehydra
==============

[](#amaraonehydra)

[![Build Status](https://camo.githubusercontent.com/7585e9019f6ff609fb7311065c136f7c2716c8696b5fd39bad80e56bca8ad47b/68747470733a2f2f7472617669732d63692e6f72672f416d6172614c6976696e672f7068702d6f6e6568796472612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AmaraLiving/php-onehydra)[![Coverage Status](https://camo.githubusercontent.com/ce45243cf82bcfb16a7feaa7a66abc4d4ce6fa99aff5c7528fd8b0f10c81ea2a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f416d6172614c6976696e672f7068702d6f6e6568796472612f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/AmaraLiving/php-onehydra?branch=master)

Purpose
-------

[](#purpose)

amara/onehydra is a library for working with the [OneHydra](http://www.onehydra.com/) API from PHP, it's still in development so will change often.

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

[](#installation)

Use composer:

```
composer require amara/onehydra

```

Example usage
-------------

[](#example-usage)

The library should be extensible for you:

```
use Amara\OneHydra\Api;
use Amara\OneHydra\Http\HttpRequestBuilder;
use Amara\OneHydra\Http\Transport\GuzzleTransport;
use Amara\OneHydra\ResultBuilder\ResultBuilderEngine;
use GuzzleHttp\Client;

$isUat = false;
$authToken = 'your auth token';

// Use the standard request builder
$httpRequestBuilder = new HttpRequestBuilder($isUat, $authToken);

// Create a Guzzle transport, in UAT you'll need to ignore the OneHydra SSL cert
$guzzleClient = new Client();
$transport = new GuzzleTransport($guzzleClient);

// Create the result builder engine, which will create result objects
// for our requests
$resultBuilderEngine = new ResultBuilderEngine();

$api = new Api($httpRequestBuilder, $transport, $resultBuilderEngine);
```

Once we have the API, the interface makes it easy to work with:

```
$pagesResult = $api->getPagesResult();

// Print the urls of the pages we will need to fetch details for
foreach ($pagesResult->getPageUrls() as $pageUrl) {
    echo $pageUrl;
}
```

We can then fetch the details for a particular page:

```
$pageResult = $api->getPageResult('/my/page');
$pageLinks = $pageResult->getPage()->getLinks();
```

Versioning
----------

[](#versioning)

The library will be following Semantic Versioning, although we don't have a 1.0.0 release yet!

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Total

6

Last Release

3127d ago

PHP version history (2 changes)v0.2.0PHP &gt;=5.5.0,&lt;7.0

v0.3.0PHP &gt;=5.5.0,&lt;8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/e696afe1a24280bbde4071ff886394ee586eb9a33d11df0957f1c0c9cd8fd7a4?d=identicon)[ockcyp](/maintainers/ockcyp)

![](https://avatars.githubusercontent.com/u/8897505?v=4)[Ross Motley](/maintainers/rossmotley)[@rossmotley](https://github.com/rossmotley)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/amara-onehydra/health.svg)

```
[![Health](https://phpackages.com/badges/amara-onehydra/health.svg)](https://phpackages.com/packages/amara-onehydra)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M962](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1933.1k5](/packages/aimeos-prisma)

PHPackages © 2026

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