Skip to content

Releases: nuxtifyts/php-dto

v0.5.0

01 Feb 19:05
Compare
Choose a tag to compare

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

Full Changelog: v0.4.1...v0.5.0

v0.4.1

01 Jan 16:41
Compare
Choose a tag to compare

Full Changelog: v0.4.0...v0.4.1

v0.4.0

01 Jan 15:17
5c676eb
Compare
Choose a tag to compare

New features

Adding DataConfiguration to help modification.
Adding ability to specify custom normalizers using attributes.
Adding additional attributes: NameMap, Hidden property

What's Changed

Full Changelog: v0.3.1...v0.4.0

v0.3.1

31 Dec 16:45
eefb049
Compare
Choose a tag to compare

What's Changed

  • Update badges section in README.md by @Fa-BRAIK in #10
  • Refactor serialization logic and reorganize contracts. by @Fa-BRAIK in #11

Full Changelog: v0.3.0...v0.3.1

v0.3.0

28 Dec 13:42
f84d04e
Compare
Choose a tag to compare

New features

Add the ability to clone DTOs and adjust their properties accordingly

What's Changed

  • Added cloneable data contract and trait by @Fa-BRAIK in #8

Full Changelog: v0.2.0...v0.3.0

v0.2.0

27 Dec 23:45
dcc6127
Compare
Choose a tag to compare

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

26 Dec 22:37
37fd091
Compare
Choose a tag to compare

Patches and bug fixes

  • Improvement on data deserialization
    • DataSerializer, DateTimeSerializer and BackedEnumSerializer

What's Changed

  • Adjusted serializers to account for already serialized data by @Fa-BRAIK in #6

Full Changelog: v0.1.0...v0.1.1

v0.1.0 Initial release

26 Dec 15:58
Compare
Choose a tag to compare

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.