https://github.com/renandelmonico/value-objects
A library with VOs to agreggate in your projects
https://github.com/renandelmonico/value-objects
php types value-object value-objects
Last synced: 7 months ago
JSON representation
A library with VOs to agreggate in your projects
- Host: GitHub
- URL: https://github.com/renandelmonico/value-objects
- Owner: renandelmonico
- Created: 2022-04-17T22:27:57.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-06T16:40:13.000Z (about 1 year ago)
- Last Synced: 2025-04-08T08:44:15.889Z (10 months ago)
- Topics: php, types, value-object, value-objects
- Language: PHP
- Homepage:
- Size: 96.7 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Value Objects Library





A lib to aggregate in your projects with most commons VO's.
> Produced by Renan Delmonico to use in his projects
# Summary
- [What's Value Objects](#whats-value-objects)
- [Documentation](#documentation)
- [Value Objects](#value-objects)
- [Enums](#enums)
- [Pull Requests](#pull-requests)
## What's Value Objects?
- [Martin Fowler's Blog: ValueObject](https://martinfowler.com/bliki/ValueObject.html)
## Documentation
To read the documentation run the Makefile command:
```sh
make doc-generate
```
## Value Objects
- Address
- Boolean
- City
- DateTime
- Email
- Integer
- IP (IPv4 and IPv6)
- Numeric
- Password
- Str
- Text
- UUID
## Enums
- Country
- PasswordAlgo
- State (Brazil)
## Pull Requests
Before you submit a Pull Request you must run the unit and mutation tests and check if the coverage is 100%.
### How?
There are three commands in Makefile (`test-unit`, `test-mutation` and `test-coverage`). You must run this commands.
> Please, rate this lib ❤️ and give stars ⭐