ro / dto-php
DTO (DATA TRANSFER OBJECT) is a library that allows transferring data between different processes across the architecture.Dto - ro for php improves communication by optimizing the number of method calls.
Installs: 52
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ro/dto-php
README
About
DTO (DATA TRANSFER OBJECT) is a library that allows transferring data between different processes across the architecture.
Dto - ro for php improves communication by optimizing the number of method calls.
Installation
composer require ro/dto-php
Global Usage
If the property that you gave it doesn't exists, it throw an exception.
| Action (Methods) | Description | Default value |
|---|---|---|
| set | set new properties | ["key" => "value"] |
| get | obtains a specific property | (string) 'key' |
| extractDto | gets all properties with their respective values | [] |