PHPackages                             chagamkamalakar/hypermedia - 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. chagamkamalakar/hypermedia

ActiveLibrary

chagamkamalakar/hypermedia
==========================

This is my first Package

07PHP

Since Nov 14Pushed 10y agoCompare

[ Source](https://github.com/chagamkamalakar/hypermedia)[ Packagist](https://packagist.org/packages/chagamkamalakar/hypermedia)[ RSS](/packages/chagamkamalakar-hypermedia/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

[HyperMedia ](http://apievangelist.com/2014/01/07/what-is-a-hypermedia-api) Client
==================================================================================

[](#hypermedia--client)

The main goal of this project is to provide fluent client interface to access REST Server API complying [ HATEOS.](https://en.wikipedia.org/wiki/HATEOAS)

Install
-------

[](#install)

Via Composer composer require chagamkamalakar/hypermedia="dev-master@dev"

how to use it:
--------------

[](#how-to-use-it)

the main part is HttpClient trait. which has 3 abstract methods

abstract function getBaseURL(); abstract function authDetailsUserNameAndPWD(); abstract function possibleURLs($resource);

In order to make use of this things

1. must implement above 3 methods
2. your class must implement ArrayAccess interface to provide pagination support ( no need to implement any method, all these methods are implemented by Pagination trait)

### abstract function getBaseURL();

[](#abstract-function-getbaseurl)

```
return the base uri for API Server

```

### abstract function authDetailsUserNameAndPWD()

[](#abstract-function-authdetailsusernameandpwd)

```
If limit rating is there on API ( for Github the limit is 60 req/hr without any authentication)
provide credentials (user_name & password) respectively in array format ['user_name','password'].

```

### abstract function possibleURLs($resource);

[](#abstract-function-possibleurlsresource)

```
see the GitHub example file code there is description is given with an example for Accessing Github api

```

To understand how to use it see the GitHub file.it's an example to access GitHub data

Pagination is supported in ArrayLike access

Example code
------------

[](#example-code)

$client = new \\GuzzleHttp\\Client();

$gitHub = new \\HyperMedia\\GitHub($client);

$user = $gitHub-&gt;users('laravel');

$repos = $user-&gt;repos();

$repo = $repos\[5\];

$issues = $repo-&gt;issues();

$tags = $repo-&gt;tags();

$issue = $issues\[0\];

echo $issue-&gt;title. "\\n";

echo $issue-&gt;body ."\\n";

$issue = $issues\[50\];

echo $issue-&gt;title. "\\n";

echo $issue-&gt;body ."\\n";

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

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/7a288517f5a7489ffe15dadb2f5ae59cf146a33e6d6607ecc3b517f2bf9824a9?d=identicon)[kamalakar](/maintainers/kamalakar)

---

Top Contributors

[![kamal-chagam](https://avatars.githubusercontent.com/u/6966631?v=4)](https://github.com/kamal-chagam "kamal-chagam (11 commits)")

### Embed Badge

![Health badge](/badges/chagamkamalakar-hypermedia/health.svg)

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

PHPackages © 2026

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