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

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

tshabatyn/auto-value
====================

Generated immutable value classes for PHP7.1+

0.2.0(3y ago)029[1 PRs](https://github.com/tshabatyn/auto-value-php/pulls)MITPHPPHP ~8.1

Since Oct 25Pushed 3y agoCompare

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

READMEChangelog (3)Dependencies (3)Versions (12)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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Recently: every ~315 days

Total

10

Last Release

1450d ago

PHP version history (3 changes)v0.1.1PHP &gt;=7.1

0.1.9PHP &gt;=7.4

0.2.0PHP ~8.1

### Community

Maintainers

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

---

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

value objectsdddvalue

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/tshabatyn-auto-value/health.svg)](https://phpackages.com/packages/tshabatyn-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)[space48/auto-value

Generated immutable value classes for PHP7.1+

291.6k](/packages/space48-auto-value)[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)

PHPackages © 2026

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