PHPackages                             unrlab/hal-support - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. unrlab/hal-support

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

unrlab/hal-support
==================

HAL format support

1.0.0(10y ago)025GNUPHPPHP &gt;=5.3.3

Since Feb 15Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

hal-support
===========

[](#hal-support)

namespace UnrLab\\Domain;

use JMS\\Serializer\\Annotation as JMS;

use UnrLab\\Model\\HalBuilder;

use UnrLab\\Model\\Serializable;

class Company implements Serializable {

use HalBuilder;

```
/**
 * @var integer
 * @JMS\Type("integer")
 */
public $id;

/**
 * @var string
 * @JMS\Type("string")
 */
public $name;

/**
 * @var string
 * @JMS\Type("string")
 */
public $siren;

/**
 * @var string
 * @JMS\Type("string")
 */
public $address;

/**
 * @var string
 * @JMS\Type("string")
 */
public $zip;

/**
 * @var string
 * @JMS\Type("string")
 */
public $city;

/**
 * @var Country
 * @JMS\Type("UnrLab\Domain\Country")
 */
public $country;

/**
 * @var array
 * @JMS\Exclude
 */
public $users;

/**
 * @var array
 * @JMS\Exclude
 */
public $customers;

/**
 * @var string
 * @JMS\Type("array")
 */
protected $links;

public function __construct() {
    $this->users = array();
    $this->customers = array();
}

public function __toString() {

    return $this->name;
}

/**
 * @JMS\PreSerialize
 */
public function preSerialize()
{
    $userIds     = array();
    $customerIds = array();
    if ($this->users->count() > 0) {
        foreach ($this->users as $user) {
            $userIds[] = $user->getId();
        }
        $this->links['users'] = $this->buildLinks($userIds, '/users/{id}', '{id}');
    }
    if ($this->customers->count() > 0) {
        foreach ($this->customers as $customer) {
            $customerIds[] = $customer->getId();
        }
        $this->links['customers'] = $this->buildLinks($customerIds, '/customers/{id}', '{id}');
    }
}

public function getLinks()
{
    return $this->links;
}

```

}

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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

Total

2

Last Release

3788d ago

Major Versions

0.1.0 → 1.0.02016-02-15

### Community

Maintainers

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

---

Top Contributors

[![C0d3-Russ](https://avatars.githubusercontent.com/u/632894?v=4)](https://github.com/C0d3-Russ "C0d3-Russ (8 commits)")

### Embed Badge

![Health badge](/badges/unrlab-hal-support/health.svg)

```
[![Health](https://phpackages.com/badges/unrlab-hal-support/health.svg)](https://phpackages.com/packages/unrlab-hal-support)
```

PHPackages © 2026

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