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(4y ago)029[1 PRs](https://github.com/tshabatyn/auto-value-php/pulls)MITPHPPHP ~8.1

Since Oct 25Pushed 4y 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 today

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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

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

1499d 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://avatars.githubusercontent.com/u/22492495?v=4)[Taras Shabatyn](/maintainers/tshabatyn)[@tshabatyn](https://github.com/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

6003.7M96](/packages/roave-backward-compatibility-check)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[dagger/dagger

Dagger PHP SDK

261.1k](/packages/dagger-dagger)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k52](/packages/friendsoftypo3-content-blocks)[phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP

5186.0k18](/packages/phel-lang-phel-lang)[space48/auto-value

Generated immutable value classes for PHP7.1+

291.6k](/packages/space48-auto-value)

PHPackages © 2026

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