PHPackages                             space48/auto-value - 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. space48/auto-value

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

space48/auto-value
==================

Generated immutable value classes for PHP7.1+

v0.2.0(4y ago)291.6k4[1 PRs](https://github.com/Space48/auto-value-php/pulls)MITPHPPHP &gt;=7.1

Since Oct 25Pushed 3y ago18 watchersCompare

[ Source](https://github.com/Space48/auto-value-php)[ Packagist](https://packagist.org/packages/space48/auto-value)[ RSS](/packages/space48-auto-value/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (3)Versions (10)Used By (0)

AutoValue PHP
=============

[](#autovalue-php)

*Generated immutable value classes for PHP7.1+*

[![Build Status](https://camo.githubusercontent.com/cb6b6a2b55155ef4c14ba30ea3ebfaf6942eecdbfbee6d9ce22d554ce8a35c1e/68747470733a2f2f7472617669732d63692e6f72672f537061636534382f6175746f2d76616c75652d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Space48/auto-value-php)

*AutoValue PHP is a port of [Google AutoValue](https://github.com/google/auto/blob/master/value) (Kevin Bourrillion, Éamonn McManus) from Java to PHP.*

**Value classes** are increasingly common in PHP projects. These are classes for which you want to treat any two instances with suitably equal field values as interchangeable.

Writing these classes by hand the first time is not too bad, with the aid of a few helper methods and IDE templates. But once written they continue to burden reviewers, editors and future readers. Their wide expanses of boilerplate sharply decrease the signal-to-noise ratio of your code... and they love to harbor hard-to-spot bugs.

AutoValue provides an easier way to create immutable value classes, with a lot less code and less room for error, while **not restricting your freedom** to code almost any aspect of your class exactly the way you want it.

For more information, consult the [detailed documentation](docs/index.md).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.3% 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 ~161 days

Recently: every ~310 days

Total

9

Last Release

1474d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6fc6deb604a4a18e3d7b9f8d73a8ad52bd8f9556e6d84f6fb0ee76eeee65b330?d=identicon)[space48](/maintainers/space48)

---

Top Contributors

[![joshdifabio](https://avatars.githubusercontent.com/u/5609851?v=4)](https://github.com/joshdifabio "joshdifabio (44 commits)")[![jakeworrall](https://avatars.githubusercontent.com/u/45756824?v=4)](https://github.com/jakeworrall "jakeworrall (3 commits)")[![dangron](https://avatars.githubusercontent.com/u/9016317?v=4)](https://github.com/dangron "dangron (2 commits)")[![vlad1992](https://avatars.githubusercontent.com/u/7978194?v=4)](https://github.com/vlad1992 "vlad1992 (2 commits)")

---

Tags

autovaluedddvalue-objectvalue objectsdddvalue

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/space48-auto-value/health.svg)

```
[![Health](https://phpackages.com/badges/space48-auto-value/health.svg)](https://phpackages.com/packages/space48-auto-value)
```

###  Alternatives

[roave/backward-compatibility-check

Tool to compare two revisions of a public API to check for BC breaks

5953.3M56](/packages/roave-backward-compatibility-check)[prooph/service-bus

PHP Enterprise Service Bus Implementation supporting CQRS and DDD

4421.4M32](/packages/prooph-service-bus)[ecotone/ecotone

Supporting you in building DDD, CQRS, Event Sourcing applications with ease.

558549.8k17](/packages/ecotone-ecotone)[php-soap/wsdl

Deals with WSDLs

173.5M12](/packages/php-soap-wsdl)[phpmentors/domain-kata

Kata for domain models

73426.9k9](/packages/phpmentors-domain-kata)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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