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: 6 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 (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-08T22:27:36.000Z (about 2 years ago)
- Last Synced: 2024-04-20T12:53:06.110Z (about 1 year ago)
- Topics: php, types, value-object, value-objects
- Language: PHP
- Homepage:
- Size: 76.2 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
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
- 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 ⭐