PHPackages                             fresns/dto - 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. fresns/dto

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

fresns/dto
==========

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

v1.3.2(2y ago)12.1k12Apache-2.0PHPPHP ^7.0|^8.0

Since Mar 5Pushed 1y agoCompare

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

READMEChangelog (8)Dependencies (7)Versions (9)Used By (2)

[![](https://camo.githubusercontent.com/112f2c0e1ba09772e7d800487b3322ff31c2a7139c9397f936d4969848baacd3/68747470733a2f2f6173736574732e667265736e732e636f6d2f696d616765732f6c6f676f732f667265736e732e706e67)](https://fresns.org)

[![PHP](https://camo.githubusercontent.com/0f3d4d1dd04baa712b9b99ec8a300e58d6a6412d88d79fd5f9a8240fca83f1e9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545372e30253743253545382e302d677265656e)](https://camo.githubusercontent.com/0f3d4d1dd04baa712b9b99ec8a300e58d6a6412d88d79fd5f9a8240fca83f1e9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545372e30253743253545382e302d677265656e)[![License](https://camo.githubusercontent.com/bbb012395ef1fa09ec910634c05f9b3ac78fa2ab7ac4c9a825fba78b82a1adf7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4170616368652d2d322e302d626c7565)](https://camo.githubusercontent.com/bbb012395ef1fa09ec910634c05f9b3ac78fa2ab7ac4c9a825fba78b82a1adf7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4170616368652d2d322e302d626c7565)

About DTO
---------

[](#about-dto)

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

- Guide:

Sponsors
--------

[](#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](https://github.com/sponsors/fresns).

Install
-------

[](#install)

To install through Composer, by run the following command:

```
composer require fresns/dto
```

Generate 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
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/fresns/dto/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/fresns/dto/issues).
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
-------

[](#license)

Fresns DTO is open-sourced software licensed under the [Apache-2.0 license](https://github.com/fresns/dto/blob/main/LICENSE).

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~107 days

Recently: every ~79 days

Total

8

Last Release

784d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c2406ffe715a73ffa50b6489029f2ec1d4705697c17691fa8c3f64cae4a72ec?d=identicon)[fresns](/maintainers/fresns)

![](https://www.gravatar.com/avatar/b37a4e4a059db2044bd4bc4336035e1d58fc4771d599b25bde0772e4a711f301?d=identicon)[mouyong](/maintainers/mouyong)

---

Top Contributors

[![jevantang](https://avatars.githubusercontent.com/u/22316055?v=4)](https://github.com/jevantang "jevantang (32 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (7 commits)")

---

Tags

dtolaravellarvael-dtophpdata-transfer-objectdtolaravel-dtofresns

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/fresns-dto/health.svg)

```
[![Health](https://phpackages.com/badges/fresns-dto/health.svg)](https://phpackages.com/packages/fresns-dto)
```

###  Alternatives

[wendelladriel/laravel-validated-dto

Data Transfer Objects with validation for Laravel applications

759569.4k13](/packages/wendelladriel-laravel-validated-dto)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[cerbero/dto

Data Transfer Object (DTO)

17119.4k1](/packages/cerbero-dto)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
