PHPackages                             jefersondaniel/siren-php - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. jefersondaniel/siren-php

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

jefersondaniel/siren-php
========================

Siren hypermedia type implementation for PHP

1.0.2(10y ago)105554PHPPHP &gt;=5.3.0

Since Jun 16Pushed 10y ago2 watchersCompare

[ Source](https://github.com/jefersondaniel/sirenphp)[ Packagist](https://packagist.org/packages/jefersondaniel/siren-php)[ RSS](/packages/jefersondaniel-siren-php/feed)WikiDiscussions master Synced today

READMEChangelog (4)DependenciesVersions (6)Used By (0)

SirenPHP
========

[](#sirenphp)

[![Latest Stable Version](https://camo.githubusercontent.com/d1e36e000342fe122067aedce715319447dc8e222920701e98ea5a272ea1fdf9/68747470733a2f2f706f7365722e707567782e6f72672f6a65666572736f6e64616e69656c2f736972656e2d7068702f762f737461626c652e737667)](https://packagist.org/packages/jefersondaniel/siren-php) [![Total Downloads](https://camo.githubusercontent.com/2e864284d726f9ec4fee3990e18f8cd185fa686980233ef934bf74b7057b01a4/68747470733a2f2f706f7365722e707567782e6f72672f6a65666572736f6e64616e69656c2f736972656e2d7068702f646f776e6c6f6164732e737667)](https://packagist.org/packages/jefersondaniel/siren-php) [![Latest Unstable Version](https://camo.githubusercontent.com/d11929371c27ad3ee5db23777fd7f2acbf870b367346ef88c57eae978942afec/68747470733a2f2f706f7365722e707567782e6f72672f6a65666572736f6e64616e69656c2f736972656e2d7068702f762f756e737461626c652e737667)](https://packagist.org/packages/jefersondaniel/siren-php) [![License](https://camo.githubusercontent.com/ff41f7bcf05e856f39d19509fbe13e0ff8870408286bd9c914132c04904a1d8e/68747470733a2f2f706f7365722e707567782e6f72672f6a65666572736f6e64616e69656c2f736972656e2d7068702f6c6963656e73652e737667)](https://packagist.org/packages/jefersondaniel/siren-php)

Siren hypermedia type implementation for PHP

Introduction
------------

[](#introduction)

Siren is a hypermedia specification for representing entities. As HTML is used for visually representing documents on a Web site, Siren is a specification for presenting entities via a Web API. Siren offers structures to communicate information about entities, actions for executing state transitions, and links for client navigation.

[See siren specification](https://github.com/kevinswiber/siren)

Installing with composer
------------------------

[](#installing-with-composer)

```
composer.phar require jefersondaniel/siren-php

```

Encoding a resource
-------------------

[](#encoding-a-resource)

```
$collection = new SirenPHP\Entity(
    '/collection/1',
    ['count' => 3],
    ['collection']
);
$entity = new SirenPHP\Entity(
    '/book/1',
    ['name' => 'The Book 1'],
    ['book']
);
$collection->appendEntity(['item'], $entity);
$link = new SirenPHP\Link(['next'], '/collection/2');
$collection->appendLink($link);

echo (string) $collection;
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 61.1% 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 ~160 days

Total

5

Last Release

3706d ago

Major Versions

0.6.1 → 1.0.02016-03-06

### Community

Maintainers

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

---

Top Contributors

[![jefersondaniel](https://avatars.githubusercontent.com/u/3521637?v=4)](https://github.com/jefersondaniel "jefersondaniel (11 commits)")[![m0x72](https://avatars.githubusercontent.com/u/5238290?v=4)](https://github.com/m0x72 "m0x72 (4 commits)")[![dailos](https://avatars.githubusercontent.com/u/541074?v=4)](https://github.com/dailos "dailos (2 commits)")[![andersondanilo](https://avatars.githubusercontent.com/u/5572326?v=4)](https://github.com/andersondanilo "andersondanilo (1 commits)")

---

Tags

jsonhypermediaSiren

### Embed Badge

![Health badge](/badges/jefersondaniel-siren-php/health.svg)

```
[![Health](https://phpackages.com/badges/jefersondaniel-siren-php/health.svg)](https://phpackages.com/packages/jefersondaniel-siren-php)
```

###  Alternatives

[justinrainbow/json-schema

A library to validate a json schema.

3.6k316.9M612](/packages/justinrainbow-json-schema)[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[jms/serializer

Library for (de-)serializing data of any complexity; supports XML, and JSON.

2.3k135.8M851](/packages/jms-serializer)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[colinodell/json5

UTF-8 compatible JSON5 parser for PHP

30422.2M45](/packages/colinodell-json5)[clue/ndjson-react

Streaming newline-delimited JSON (NDJSON) parser and encoder for ReactPHP.

15267.7M16](/packages/clue-ndjson-react)

PHPackages © 2026

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