PHPackages                             jetcod/data-transport - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jetcod/data-transport

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jetcod/data-transport
=====================

Efficient PHP Data Transport with DTOs

v1.4.0(7mo ago)41.6k1MITPHPPHP ^7.4|^8.0CI passing

Since Feb 24Pushed 7mo ago1 watchersCompare

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

READMEChangelog (6)Dependencies (4)Versions (9)Used By (1)

Data Transfer Object (DTO)
==========================

[](#data-transfer-object-dto)

[![Actions Status](https://github.com/jetcod/data-transport/actions/workflows/php.yml/badge.svg?style=for-the-badge&label=%3Cb%3EBuild%3C/b%3E)](https://github.com/jetcod/data-transport/actions)

[![Latest Stable Version](https://camo.githubusercontent.com/73c2a9db0239140a3e4c4cae16fd55801c1f8b9cfc96f16dd3be0ae61b38152e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6574636f642f646174612d7472616e73706f72743f6c6162656c3d4c6174657374253230537461626c6525323056657273696f6e)](https://packagist.org/packages/jetcod/data-transport)[![Total Downloads](https://camo.githubusercontent.com/b935f62c16e415b81cde2c3d7aaf47ee15d0defd5fd29fc122e81bb737b1ac5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6574636f642f646174612d7472616e73706f72743f6c6162656c3d546f74616c253230446f776e6c6f616473)](https://packagist.org/packages/jetcod/data-transport)[![License](https://camo.githubusercontent.com/7582814211e673b16c5ef3efa129f164665c983e2b4b4b2a0ff1fe5e714c1144/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a6574636f642f646174612d7472616e73706f72743f6c6162656c3d4c6963656e7365)](https://github.com/jetcod/eloquent-repository/blob/main/LICENSE)

Overview
--------

[](#overview)

**Data Transport** is a PHP package that provides a simple and efficient way to transport data within your application. With Data Transport, you can easily define and manage your data structures, ensuring that your application's data is well-organized and easy to work with. It supports read-only objects, validates attributes upon assignment, and allows integration of custom validators through a schema definition.

Check out our [documentation](https://jetcod.github.io/data-transport) for more details.

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

[](#installation)

To install `jetcod/data-transport`, you can use Composer, the dependency manager for PHP. Run the following command in your terminal:

```
composer require jetcod/data-transport
```

Usage
-----

[](#usage)

It is straightforward to employ `jetcod/data-transport`. To begin, create a customized data object class that extends `Jetcod\DataTransport\AbstractDTO`.

```
