Download the PHP package mistery23/laravel-value-objects without Composer
On this page you can find all versions of the php package mistery23/laravel-value-objects. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mistery23/laravel-value-objects
More information about mistery23/laravel-value-objects
Files in mistery23/laravel-value-objects
Package laravel-value-objects
Short Description laravel object relations
License MIT
Homepage https://github.com/mistery23/eloquent-object-relations
Informations about the package laravel-value-objects
Laravel value objects
Install
Features
Additional functional for eloquent casts. This package can you cast your attribute in value objects wrap.
If use id
format uuid
(ramsey/uuid
), you can use Mistery23\ValueObjects\Objects\Id
.
For the provide back capability in relations, in this package use mistery23/eloquent-object-relations
package.
You can use the Mistery23\ValueObjects\Objects\EmailAddress
for your email attribute.
You can extend the Mistery23\ValueObjects\Objects\EnumType
for your status attribute (marc-mabe/php-enum
).
If you want to create own value object type, you can extend Mistery23\ValueObjects\Objects\NativeType
for simple object, or implement Mistery23\ValueObjects\ValueObjectInterface
.
Using
bash
|-- .gitignore
|-- LICENSE.MD
|-- README.MD
|-- composer.json
-- src |-- HasValueObjects.php |-- Objects | |-- EmailAddress.php | |-- EnumType.php | |-- Id.php |
-- NativeType.php
|-- Util.php
`-- ValueObjectInterface.php
- Tree command can be installed using brew: brew install tree
- File tree generated using command tree -a -I '.idea|.git|node_modules|vendor|storage|tests|composer.lock'
---
License
---
This package is free software distributed under the terms of the [MIT license](https://opensource.org/licenses/MIT). Enjoy!
All versions of laravel-value-objects with dependencies
illuminate/database Version ~5.8.0|^6.0
mistery23/eloquent-object-relations Version ^1.2
ramsey/uuid Version ^3.8
marc-mabe/php-enum Version ^4.2