Download the PHP package xdevmafia/php-value-object without Composer
On this page you can find all versions of the php package xdevmafia/php-value-object. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download xdevmafia/php-value-object
More information about xdevmafia/php-value-object
Files in xdevmafia/php-value-object
Download xdevmafia/php-value-object
More information about xdevmafia/php-value-object
Files in xdevmafia/php-value-object
Vendor xdevmafia
Package php-value-object
Short Description Value objects for PHP
License MIT
Package php-value-object
Short Description Value objects for PHP
License MIT
Keywords dddValue Object
Please rate this library. Is it a good library?
Informations about the package php-value-object
Value objects for PHP
Easy way for validate, normalize and format values.
Installation
Install the latest version with:
Basic Usage
Types
List of available Type classes:
- IntType
- FloatType
- StringType
- BoolType
- ArrayType
- ObjectType
- MixedType
Constraints
List of available Constraint classes:
- DateFormat
- Domain
- Enum
- Ip
- IsObject
- Json
- Max
- MaxLength
- Min
- MinLength
- NotEmpty
- NotNull
- Regex
- Url
- Uuid
Objects
List of available Object classes:
- DateObject
- DateTimeObject
- DomainObject
- EmailObject
- IpObject
- JsonObject
- UrlObject
- UuidObject
Object extends *Type class:
You can create own objects:
With constraints:
You can create own constraints.
Invokable class will be return bool
value:
And object that uses this constraint:
All versions of php-value-object with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
ext-json Version *
ext-mbstring Version *
ext-json Version *
ext-mbstring Version *
The package xdevmafia/php-value-object contains the following files
Loading the files please wait ....