bruli/php-value-objects
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| apie/text-value-objects | 0.88 | — | 0 | 0 | 0 | 15 | 0 | 0.0 | 16.6 | MIT | — | |
| serendipity_hq/component-value-objects | 0.88 | 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 | — | |
| andydefer/domain-structures | 0.87 | 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 | — | |
| lolli42/finediff | 0.87 | Create HTML diffs between two strings with fine-grained character or word comparison. Outputs / markup, escapes HTML entities, supports multibyte strings, and exposes internal opcodes for diff processing. PHP 8.2+ in v1.1. | 13 | 13 | 3 | 489K | 0 | 3.3 | 55.6 | MIT | 1 year ago | |
| php-standard-library/foundation | 0.87 | Foundation provides the core building blocks for PHP Standard Library packages: a consistent exception hierarchy, the Ref reference wrapper for safe value passing, and invariant functions for validating preconditions and enforcing assumptions. Lightweight, dependency-free, and designed for reuse acr... | 1 | 1 | 0 | 105K | 0 | 21.6 | 64.9 | MIT | 1 week ago | |
| spatie/value-object | 0.87 | 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 | |
| apie/common-value-objects | 0.87 | 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 | — | |
| php-standard-library/fun | 0.87 | Functional programming utilities for PHP: compose and decorate functions, control execution, and build pipelines with small, reusable higher-order helpers. | 1 | 1 | 0 | 28K | 0 | 21.6 | 64.9 | MIT | 1 week ago | |
| cerbero/dto | 0.87 | Cerbero DTO is a lightweight Laravel/PHP package for creating type-safe data transfer objects from arrays and requests. It supports property casting, validation, nested DTOs, and easy serialization, helping keep application data structured and predictable. | 17 | 19 | 5 | 717 | 0 | 0.3 | 22.3 | MIT | — | |
| bfg/object | 0.86 | A lightweight Laravel/PHP package for object utilities, offering simple helpers to create, inspect, and manipulate object data in a clean, consistent way. Easy to drop into existing projects and use alongside Laravel or standalone PHP code. | 1 | 1 | 1 | 39 | 0 | 0.0 | 18.1 | MIT | — | |
| michael-rubel/laravel-value-objects | 0.86 | 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 | 158 | 1 | 2.2 | 3.8 | MIT | 1 year ago | |
| boson-php/value-object-contracts | 0.86 | — | 0 | 0 | 0 | 65 | 0 | 0.0 | 25.1 | MIT | — | |
| php-standard-library/type | 0.86 | Runtime type validation for PHP built on the Parse, Don't Validate principle: coerce and assert unstructured input into well-typed data, with clear errors when values don't match. | 1 | 1 | 0 | 114K | 0 | 21.4 | 64.8 | MIT | 1 week ago | |
| innmind/immutable | 0.85 | 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 |
|
| dothiv/dothiv-valueobject-bundle | 0.85 | 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 | — | |
| complex-heart/domain-model | 0.85 | 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 | |
| romanzipp/dto | 0.85 | Lightweight data transfer objects for PHP and Laravel. Define typed properties, cast and validate values, and convert DTOs to and from arrays with ease, keeping request and response data structured and type-safe. | 12 | 12 | 1 | 337 | 1 | 0.2 | 19.7 | MIT | — | |
| nicolopignatelli/valueobjects | 0.85 | 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 | — | — | — | |
| schmeits/pulse-panphp | 0.85 | A Laravel Pulse card that integrates PanPHP's privacy-friendly analytics into your Pulse dashboard, letting you monitor page views, visitors, and traffic trends alongside application health metrics. Simple to install and configure. | 5 | — | 2 | — | 0 | 20.5 | 0.5 | MIT | 1 week ago | |
| runn/valueobjects | 0.85 | 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 | — |
How can I help you explore Laravel packages today?