PHPackages                             tiagobutzke/json2dto - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. tiagobutzke/json2dto

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

tiagobutzke/json2dto
====================

Generate DTO objects by a json

1.0.0(11y ago)10491MITPHPPHP &gt;=5.3.0

Since Jun 22Pushed 11y ago2 watchersCompare

[ Source](https://github.com/tiagobutzke/json2dto)[ Packagist](https://packagist.org/packages/tiagobutzke/json2dto)[ RSS](/packages/tiagobutzke-json2dto/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

json2dto
========

[](#json2dto)

Generate Data Transfer Objects is normaly a hard work. With json2dto, you can easily generate your DTO's by a json file.

### Install via Github

[](#install-via-github)

```
# clone this repository
git clone git@github.com:tiagobutzke/json2dto.git
```

### Install via Composer

[](#install-via-composer)

```
# add in composer.json
"require-dev": {
    "tiagobutzke/json2dto": "1.0.*"
}
```

### Basic Usage

[](#basic-usage)

```
# Execute json2dto
./json2dto some_file.json some/directory --namespace=SomeNamespace
```

Namespace is an optional parameter.

---

Thanks!

;)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

4340d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c83ff29d98e08091c0679ff8c33baa18656b234163b8617befc047e21bfcfde?d=identicon)[tiagobutzke](/maintainers/tiagobutzke)

---

Top Contributors

[![tiagobutzke](https://avatars.githubusercontent.com/u/498353?v=4)](https://github.com/tiagobutzke "tiagobutzke (30 commits)")

---

Tags

jsondatageneratorobjectdtotransferjson2dto

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tiagobutzke-json2dto/health.svg)

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

###  Alternatives

[samayo/country-json

A simple but useful data of the world (by country) in JSON formats

1.1k22.4k](/packages/samayo-country-json)[brick/json-mapper

Maps JSON data to strongly typed PHP DTOs

20552.1k3](/packages/brick-json-mapper)[psx/schema

Parse and generate data schema formats

57238.7k18](/packages/psx-schema)[ovidigital/js-object-to-json

PHP library to convert a JavaScript object string to JSON formatted string

18177.7k6](/packages/ovidigital-js-object-to-json)[sbsaga/toon

🧠 TOON for Laravel — a compact, human-readable, and token-efficient data format for AI prompts &amp; LLM contexts. Perfect for ChatGPT, Gemini, Claude, Mistral, and OpenAI integrations (JSON ⇄ TOON).

6115.6k](/packages/sbsaga-toon)

PHPackages © 2026

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