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

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

sodalto/dto-generator
=====================

Generate DTOs to be used instead of arrays.

v0.1.0-alpha(4y ago)06MITPHP

Since May 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ltdangle/dto-generator)[ Packagist](https://packagist.org/packages/sodalto/dto-generator)[ RSS](/packages/sodalto-dto-generator/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

WHAT IS IT?
-----------

[](#what-is-it)

This cli tool will generate a DTO class to be used as a replacement for array.

WHY?
----

[](#why)

A lot of php code is array-heavy, the idea is to use objects for data transfer, especially as return types.

HOW TO USE?
-----------

[](#how-to-use)

`$ php generate.php generate:dto-array %path% %className%` - a DTO %className% will be generated at %path%. You will be asked about the properties you want to include in the class.

TODO:
-----

[](#todo)

- Check that directory exist before writing generated classes
- Refactor GenerateArrayClassCommand's callback actions to standalone classes
- Add tests for ArrayClassGenerator (introduce filesystem writer dependency)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1464d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b1515a3460f39fc31c545ba3ac796e91c0a9918d7025cbfc6baab9834b82323?d=identicon)[sodalto](/maintainers/sodalto)

---

Top Contributors

[![ltdangle](https://avatars.githubusercontent.com/u/2528468?v=4)](https://github.com/ltdangle "ltdangle (21 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[php-soap/wsdl

Deals with WSDLs

173.5M12](/packages/php-soap-wsdl)[phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP

4743.5k10](/packages/phel-lang-phel-lang)[symfony/ai-bundle

Integration bundle for Symfony AI components

30282.3k6](/packages/symfony-ai-bundle)[aedart/athenaeum

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

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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