mass6/flexible-dto

Data transfer object with validation and value casting

4.8.0 2024-03-14 09:12 UTC

This package is auto-updated.

Last update: 2024-04-14 09:21:13 UTC


README

Latest Version on Packagist Total Downloads

The aim of this package is to make it really easy to construct Data Transfer Objects with data properties constrained to a specified whitelist. Then, you can choose to construct the DTO by passing in each property individually like a classic DTO, or via an associative array.

Installation

You can install the package via composer:

composer require mass6/flexible-dto

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.

Documentation

Check out the documentation at the Flexibile DTO Documentation website.