makasim/values
PHP library for defining value objects with typed properties. Cast and validate incoming data, handle nested values, and keep domain data consistent through a small, expressive API. A lightweight alternative to heavier ORM and validation stacks.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| marvin255/value-object | 0.82 | A Laravel/PHP package for building immutable, self-validating value objects with typed properties and simple array/JSON conversion, helping keep domain data consistent and expressive. | 0 | 0 | 0 | 3 | 0 | 8.7 | 9.0 | MIT | 7 months ago | |
| bruli/php-value-objects | 0.80 | A lightweight PHP library for building immutable value objects with typed primitive wrappers and validation. bruli/php-value-objects helps enforce domain invariants, reduce primitive obsession, and keep Laravel or any PHP codebase clearer and safer. | 43 | 43 | 13 | 580 | 1 | 0.7 | 15.9 | MIT | — | |
| makasim/json-patch-php | 0.79 | A PHP library implementing JSON Patch (RFC 6902) for applying add, remove, replace, move, copy, and test operations to JSON-like PHP data. Supports partial updates and precise, diff-driven changes to arrays and objects. | 0 | 0 | 0 | 12 | 0 | 0.0 | 15.4 | — | 7 years ago | |
| innmind/type | 0.78 | innmind/type provides a lightweight type system for PHP, letting you express and enforce typed data structures, unions, and constraints in a declarative way. It integrates cleanly with the Innmind ecosystem and keeps validation explicit and composable. | 1 | — | 0 | — | 0 | 8.4 | — | MIT | 7 months ago |
|
| innmind/immutable | 0.78 | Innmind/Immutable provides persistent, immutable collections for PHP, including sequences, sets, maps, and streams. It offers a functional API with lazy operations, structural sharing, and type-safe wrappers for predictable, side-effect-free data manipulation. | 75 | — | 4 | — | 2 | 16.4 | — | MIT | 2 months ago |
|
| randock/value-object | 0.78 | A PHP library from Randock for defining immutable value objects, helping encapsulate domain primitives like IDs, emails, and money in reusable, type-safe classes with validation and Laravel-friendly integration. | 1 | — | 0 | — | 0 | 0.0 | — | — | 7 years ago |
|
| micro-module/value-object | 0.78 | Immutable, self-validating value objects for PHP and Laravel. Wrap primitives like emails, IDs, and money in typed classes that guard their own invariants, so invalid values can't exist and domain logic stays clean, testable, and free of scattered validation checks. | 1 | 1 | 1 | 127 | 0 | 0.0 | 25.0 | — | 1 year ago | |
| marc-mabe/php-enum | 0.77 | Native PHP enum implementation via an abstract base class. Extend it to define enumerations from public constants (supports scalars, null, and arrays), create and compare enum instances, and keep a strict set of named values for safer domain modeling. | 498 | 506 | 35 | 8M | 2 | 12.9 | 55.1 | BSD-3-Clause | 1 year ago | |
| nicolopignatelli/valueobjects | 0.77 | Laravel-friendly PHP value objects library that helps you model domain concepts as immutable, self-validating objects (like Email, Money, Url, etc.). Encourages DDD patterns, clearer APIs, and safer data handling with consistent validation and comparison. | 0 | 430 | — | 0 | — | 0.0 | — | — | — | |
| cubicmushroom/valueobjects | 0.77 | A small PHP package providing lightweight Value Object classes to model immutable domain values (e.g., IDs, money, email, dates) with validation and type-safety. Useful for cleaner Laravel apps and DDD-style codebases. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| formapro/values | 0.77 | A lightweight Laravel/PHP package for working with typed values and value objects. It provides a clean, expressive API to encapsulate data, validate inputs, and keep domain logic consistent, reusable, and easy to maintain without unnecessary boilerplate. | 30 | — | 14 | — | 2 | 1.0 | — | MIT | 7 years ago |
|
| php-standard-library/collection | 0.77 | Generic, object-oriented Vector, Map, and Set collections for PHP, available in both immutable and mutable variants. Part of the PHP Standard Library, offering a consistent, type-safe API for building and transforming collections. | 1 | 1 | 0 | 54K | 0 | 21.6 | 64.9 | MIT | 1 week ago | |
| teknoo/immutable | 0.77 | teknoo/immutable helps PHP and Laravel developers build immutable value objects and data structures, reducing accidental state changes and making code easier to reason about, test, and maintain. Lightweight, framework-agnostic, and simple to drop into existing projects. | 4 | 5 | 0 | 12K | 0 | 0.0 | 46.9 | BSD-3-Clause | — | |
| mauretto78/array-query | 0.76 | Array Query is a PHP library that lets you query arrays using SQL-like syntax: select, where, order by, group by, limit and joins, with support for nested keys and custom operators. It brings database-style filtering and sorting to plain arrays, making complex data manipulation readable and testable... | 12 | — | 4 | — | 0 | 0.2 | — | MIT | 7 years ago |
|
| sebastian/type | 0.76 | A collection of value objects that model the PHP type system, including simple, union, intersection, and special types. Use it to inspect, compare, and represent type information programmatically in PHP projects. | 1,503 | 1,503 | 13 | 24M | 1 | 27.4 | 62.7 | BSD-3-Clause | 2 months ago |
How can I help you explore Laravel packages today?