nicolopignatelli/valueobjects
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| alexandrebulete/ddd-foundation | 0.87 | — | 3 | 3 | 0 | 11 | 0 | 0.0 | 7.9 | — | — | |
| apie/type-converter | 0.87 | Apie type converter converts PHP objects into other objects, ideal for mapping DTOs to domain objects and back. It ships with default converters and lets you easily write your own. | 0 | 0 | 0 | 3K | 0 | 16.4 | 53.7 | MIT | 2 months ago | |
| php-ddd/domain-driven-design | 0.87 | php-ddd/domain-driven-design helps Laravel/PHP developers structure applications around bounded contexts and domain logic, with reusable DDD building blocks and conventions for entities, value objects, aggregates, repositories, services, and domain events. | 29 | — | 4 | — | 1 | 0.2 | — | MIT | 11 years ago |
|
| dothiv/dothiv-valueobject-bundle | 0.87 | Symfony bundle providing a set of reusable value objects for Dothiv projects, aimed at consistent domain modeling and type-safe primitives. Includes common immutable objects and utilities to share across services and applications. | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| runn/valueobjects | 0.87 | Runn ValueObjects gives you a lightweight foundation for immutable PHP value objects, with typed base classes for strings, integers, booleans and arrays, validation helpers, and Eloquent casts to keep domain values consistent. | 9 | 9 | 2 | 18 | 1 | 0.3 | 6.2 | LGPL-3.0 | — | |
| czim/laravel-dataobject | 0.86 | Lightweight data objects for Laravel: define typed properties, hydrate instances from arrays, and convert them back to arrays or JSON. A simple way to keep request, config, and domain data structured, consistent, and easy to pass around with minimal boilerplate. | 11 | 11 | 0 | 2K | 0 | 0.1 | 30.7 | MIT | — | |
| cubicmushroom/valueobjects | 0.86 | 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 | — | |
| matthiasnoback/doctrine-orm-value-object | 0.86 | A Doctrine ORM integration for mapping PHP value objects as embeddables, with support for custom types and conversion between value objects and database columns. It helps keep domain models free of ORM concerns while persisting rich value objects transparently. | 19 | — | 1 | — | 1 | 0.2 | — | — | — |
|
| funeralzone/valueobjects | 0.86 | PHP 7.1+ value object toolkit for fundamental scalar-based VOs. Provides traits for strings/ints/etc, enums via constants, easy native serialization (fromNative/toNative), and encourages domain validation logic. Includes extension library for complex objects. | 66 | 66 | 7 | 44K | 2 | 6.3 | 38.9 | MIT | 5 years ago | |
| boson-php/value-object-contracts | 0.86 | — | 0 | 0 | 0 | 65 | 0 | 0.0 | 25.1 | MIT | — | |
| randock/value-object | 0.85 | 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 |
|
| tdn/php-types | 0.85 | A small PHP utility for working with types: safely cast values, validate data against expected types, and normalize scalars, arrays and objects. Lightweight and framework-agnostic, it drops easily into Laravel or any Composer project. | 7 | 8 | 0 | 45 | 0 | 0.0 | 8.0 | NOASSERTION | 11 years ago | |
| dddominio/common | 0.85 | Common utilities for the DDDominio ecosystem: shared helpers, base classes, and cross-package abstractions to standardize behavior and reduce duplication across domain-driven Laravel/PHP packages. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| spatie/value-object | 0.85 | Deprecated Spatie package for PHP 8+ data transfer objects. Create typed DTOs from arrays with casting, validation, and attribute mapping (e.g., nested keys). Consider migrating to spatie/laravel-data or cuyz/valinor. | 2,221 | 2,223 | 187 | 0 | 0 | 12.9 | — | MIT | 4 years ago | |
| michael-rubel/laravel-value-objects | 0.85 | Laravel Value Objects offers an abstract base class and Eloquent casts for turning model attributes into immutable value objects, with validation, comparison helpers, and PHP 8 support for cleaner, type-safe domain code. | 205 | 205 | 18 | 159 | 1 | 2.2 | 3.8 | MIT | 1 year ago | |
| apie/text-value-objects | 0.85 | — | 0 | 0 | 0 | 15 | 0 | 0.0 | 16.6 | MIT | — | |
| micro-module/value-object | 0.84 | 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 | |
| bruli/php-value-objects | 0.84 | 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 | — | |
| andydefer/domain-structures | 0.84 | A Laravel/PHP package that provides reusable domain structures and building blocks for domain-driven design. It helps organize business logic, reduce boilerplate, and keep core rules isolated from framework and infrastructure concerns for cleaner, more maintainable applications. | 0 | 0 | 0 | 2K | 0 | 0.0 | 46.3 | MIT | — | |
| coder-at-heart/object-models | 0.84 | — | 5 | 6 | 0 | 1 | 0 | 0.0 | 0.9 | MIT | — |
How can I help you explore Laravel packages today?