space48/auto-value
最新稳定版本:v0.2.0
Composer 安装命令:
composer require space48/auto-value
包简介
Generated immutable value classes for PHP7.1+
关键字:
README 文档
README
Generated immutable value classes for PHP7.1+
AutoValue PHP is a port of Google AutoValue (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.
统计信息
- 总下载量: 1.56k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 29
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-10-25