funeralzone/valueobjects
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| apie/date-value-objects | 0.86 | Date-related value objects for PHP/Apie that model only the date/time parts you need (LocalDate, Time, HourAndMinutes, UnixTimestamp, DateWithTimezone). Helps validate expected formats without relying on full DateTimeImmutable. | 0 | 0 | 0 | 12 | 0 | 0.0 | 15.4 | MIT | — | |
| cubicmushroom/valueobjects | 0.85 | 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 | — | |
| shibuyakosuke/laravel-valuedomain-api | 0.85 | — | 0 | 0 | 0 | 1 | 0 | 0.0 | 4.2 | — | — | |
| coder-at-heart/object-models | 0.84 | — | 5 | 6 | 0 | 1 | 0 | 0.0 | 0.9 | MIT | — | |
| runn/valueobjects | 0.84 | 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 | — | |
| 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 | |
| nicolopignatelli/valueobjects | 0.84 | 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 | — | — | — | |
| 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 | — | |
| michael-rubel/laravel-value-objects | 0.83 | 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/common-value-objects | 0.82 | Common value objects for the Apie ecosystem: ready-to-use PHP enums (e.g., Gender) and identifier base classes (e.g., UUID v4) for entities, fields, or composite value objects. Designed to be extended and used as examples in your own domain. | 0 | 0 | 0 | 7 | 0 | 0.0 | 12.5 | MIT | — | |
| dothiv/dothiv-valueobject-bundle | 0.82 | 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 | — | |
| boson-php/value-object-contracts | 0.82 | — | 0 | 0 | 0 | 65 | 0 | 0.0 | 25.1 | MIT | — | |
| marvin255/value-object-bundle | 0.82 | A Symfony bundle for using immutable value objects with Doctrine ORM, offering base classes, type mappings, and integration helpers so domain values can be persisted and hydrated transparently. Helps keep models expressive and avoid primitive obsession. | 0 | 0 | 0 | 2 | 0 | 12.1 | 7.3 | MIT | 5 months ago | |
| matthiasnoback/doctrine-orm-value-object | 0.82 | 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 | — | — | — |
|
| dddominio/common | 0.82 | 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 | — | |
| yokai/doctrine-value-object | 0.81 | yokai/doctrine-value-object brings reusable value objects to Doctrine in Laravel apps, offering embeddable types and integration helpers for cleaner, type-safe domain models with less boilerplate. | 13 | 13 | 1 | 10K | 0 | 0.1 | 39.5 | MIT | 2 years ago | |
| serendipity_hq/component-value-objects | 0.81 | A Laravel/PHP value object component for modeling domain concepts with immutable, type-safe objects. Encapsulate validation and formatting, reduce primitive obsession, and bring clarity and safety to your codebase. | 21 | 20 | 1 | 8K | 6 | 0.9 | 25.9 | MIT | — | |
| apie/text-value-objects | 0.81 | — | 0 | 0 | 0 | 15 | 0 | 0.0 | 16.6 | MIT | — | |
| complex-heart/domain-model | 0.81 | Domain modeling toolkit for Laravel and PHP applications. Provides reusable base classes and utilities for entities, value objects, aggregates, and domain events, helping you keep business logic expressive, testable, and independent of framework concerns. | 3 | 4 | 0 | 216 | 0 | 15.6 | 27.3 | MIT | 2 months ago | |
| woohoolabs/yin | 0.81 | PSR-7–compatible PHP framework for building JSON:API servers. Provides documents, resources, hydrators, request/response validation, pagination, relationship handling, content negotiation, middleware support, and custom serialization/deserialization. | 239 | 240 | 37 | 3K | 5 | 6.4 | 12.4 | MIT | 5 years ago |
How can I help you explore Laravel packages today?