Skip to content

Flexible data transfer objects with validation, property whitelisting, and custom casts

License

Notifications You must be signed in to change notification settings

mass6/flexible-dto

Repository files navigation

Flexible data transfer objects with validation, property whitelisting, and custom casts

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.

About

Flexible data transfer objects with validation, property whitelisting, and custom casts

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages