PHPackages                             tomasklatt/dto-performance-comparison - 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. tomasklatt/dto-performance-comparison

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

tomasklatt/dto-performance-comparison
=====================================

Performance comparison between SpatieDTO, own written DTOs and raw data (associative arrays)

1.0.3(3y ago)011MITPHPPHP &gt;=8.1

Since Aug 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/tomasklatt/dto-performance-comparison)[ Packagist](https://packagist.org/packages/tomasklatt/dto-performance-comparison)[ RSS](/packages/tomasklatt-dto-performance-comparison/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

dto-performance-comparison
==========================

[](#dto-performance-comparison)

Compare performance of associative arrays, [SpatieDTO](https://github.com/spatie/data-transfer-object) and own written DTO.

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

[](#installation)

This project uses composer.

```
composer require tomasklatt/dto-performance-comparison

```

Usage
-----

[](#usage)

To test those three ways of passing data in app with default data set just use

```
bin/dtopc run

```

To change amount of data of Faker library you can use params `-c` or `-count`

```
bin/dtopc run -c 10

```

To add own DTO library just install it via composer and create new runner class extending AbstractRunner.

[![Example of result in Linux terminal](https://camo.githubusercontent.com/e048b7769d563fe1bcc86a1d4f6016ab19f2b748db0d269f7f85c8e8bb0fde66/68747470733a2f2f746f6d61736b6c6174742e637a2f696d616765732f44544f506572666f726d616e6365436f6d70617269736f6e2e706e67)](https://camo.githubusercontent.com/e048b7769d563fe1bcc86a1d4f6016ab19f2b748db0d269f7f85c8e8bb0fde66/68747470733a2f2f746f6d61736b6c6174742e637a2f696d616765732f44544f506572666f726d616e6365436f6d70617269736f6e2e706e67)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

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

Every ~7 days

Total

4

Last Release

1332d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21624a466b3f636462dfab54ac4fd10e5dd31fd5d5e123c9a0fad1b04f23967c?d=identicon)[tomasklatt](/maintainers/tomasklatt)

---

Top Contributors

[![tomasklatt](https://avatars.githubusercontent.com/u/27994429?v=4)](https://github.com/tomasklatt "tomasklatt (23 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tomasklatt-dto-performance-comparison/health.svg)

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

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[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)
