PHPackages                             sajadsdi/dto-tool - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. sajadsdi/dto-tool

ActiveLibrary

sajadsdi/dto-tool
=================

Tools for DTO classes to easy manage

1.0.2(2y ago)3331MITPHPPHP ^8.1

Since Nov 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sajadsdi/dto-tool)[ Packagist](https://packagist.org/packages/sajadsdi/dto-tool)[ RSS](/packages/sajadsdi-dto-tool/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (1)

DTO Tool
========

[](#dto-tool)

DTO Tool is a PHP library that provides tools for managing Data Transfer Object (DTO) classes. It simplifies the process of working with DTOs by offering convenient methods for data manipulation and conversion.

Installation
------------

[](#installation)

You can install the DTO Tool library via Composer. Run the following command in your project directory:

```
composer require sajadsdi/dto-tool
```

Features
--------

[](#features)

- auto Add Dynamic Getter and Setter for Public and Private Properties (You can change Visibility)
- Initial DTO with array
- Export DTO to array

Requirements
------------

[](#requirements)

- PHP version 8.1 or higher
- sajadsdi/php-reflection package version 1.0 or higher

Usage
-----

[](#usage)

1. Create your DTO classes and define the private properties.
2. use the DTOTrait in DTO

```
