fresns/dto

Fresns data transfer object extension package for easy generation of data rules and inspection of transfer data. Works with Laravel projects.
2,467 1
Install
composer require fresns/dto
Latest Version:v1.3.3
PHP:^7.0|^8.0
License:Apache-2.0
Last Updated:May 2, 2026
Links: GitHub  ·  Packagist
Maintainer: mouyong

About DTO

Fresns data transfer object extension package for easy generation of data rules and inspection of transfer data. Works with Laravel projects.

Sponsors

Fresns is an Apache-2.0-licensed open source project with its ongoing development made possible entirely by the support of these awesome backers. If you'd like to join them, please consider sponsoring Fresns development.

Install

To install through Composer, by run the following command:

composer require fresns/dto

Generate DTO

// Generate a new DTO (path: /app/DTO/)
php artisan make:dto BaseDTO

// Generate a new DTO(to the specified path)
php artisan make:dto BaseDTO --path /app/Fresns/Panel

See the Laravel documentation for the rules that can be used for validation.

Contributing

You can contribute in one of three ways:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. Contribute new features or update the wiki.

The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.

License

Fresns DTO is open-sourced software licensed under the Apache-2.0 license.

Related Packages

event4u/data-helpers

Framework-agnostic PHP library for data mapping, DTOs and utilities. Includes Da...

37,180 14
grazulex/laravel-arc

A Laravel package for elegant and modern Data Transfer Objects (DTOs) management...

26 9
std-out/simple-data-objects

Lightweight typed Data Transfer Object library for PHP 8.4+ with attribute-drive...

416 32
laraditz/dto

A simple data transfer object

59 0