https://github.com/netlogix/value-object
A collection of value objects with optional Doctrine integration
https://github.com/netlogix/value-object
Last synced: 9 months ago
JSON representation
A collection of value objects with optional Doctrine integration
- Host: GitHub
- URL: https://github.com/netlogix/value-object
- Owner: netlogix
- License: mit
- Created: 2024-11-07T12:43:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-30T12:39:46.000Z (11 months ago)
- Last Synced: 2025-03-07T02:49:12.962Z (10 months ago)
- Language: PHP
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# netlogix/value-object
This package provides a collection of common value objects with Doctrine integration.
## Installation
Install the package via Composer:
```bash
composer require netlogix/value-object
```
## Usage
In order to use a value object with Doctrine, it must implement the `PersistableValueObject` interface. For this purpose, the value object can, for example, inherit from the abstract classes for common value objects or implement the interface directly.
## Acknowledgements
The initial implementation of the type registration with Doctrine was inspired by [upscale/doctrine-value-object-bundle](https://github.com/upscalesoftware/doctrine-value-object-bundle).