Releases: nuxtifyts/php-dto
Releases · nuxtifyts/php-dto
v0.5.0
New features
Adding LazyData
to enable creation of lazy objects via two new functions: createLazy
and createLazyUsing
Adding Lazy
attribute to force enable lazy objects in core functions: create
, from
, empty
and with
Updated documentation and added Lazy data
docs.
What's Changed
- V0.5 Support for Arr helpers and collections by @Fa-BRAIK in #16
- Lazy objects implementation by @Fa-BRAIK in #17
Full Changelog: v0.4.1...v0.5.0
v0.4.1
Full Changelog: v0.4.0...v0.4.1
v0.4.0
New features
Adding DataConfiguration
to help modification.
Adding ability to specify custom normalizers using attributes.
Adding additional attributes: NameMap
, Hidden
property
What's Changed
- Introducing Data Configuration by @Fa-BRAIK in #12
- Add support for normalizers via attributes by @Fa-BRAIK in #13
- Feature/additional attributes by @Fa-BRAIK in #14
Full Changelog: v0.3.1...v0.4.0
v0.3.1
v0.3.0
v0.2.0
New features
Add the ability to resolve a default value when hydrating a DTO.
- Ability to perform a check for regular values: (Scalar, BackedEnum and null, arrays of previous types)
- Ability to resolve a default values for complex types : (Data types and array of Datatypes, DateTimes and array of Datetimes ...)
- Ability to create a new instance of DTO using these attributes (Would not be possible using a regular construct)
- Ability to create an empty DTO
What's Changed
- Added default to attribute to specify default values for properties by @Fa-BRAIK in #5
- Added empty data contract by @Fa-BRAIK in #7
Full Changelog: v0.1.1...v0.2.0
v0.1.1
v0.1.0 Initial release
Initial Release
Ability to declare data objects following modern PHP syntax.
- Added many supported types:
- Scalar types
- DateTime type
- BackedEnum type
- Data types
- Array types
- Union types
- Added normalizers for data hydration.
- Added useful property attributes to help custom data hydration and serialization.
- Added data refiners to help custom data hydration.