dereuromark / cakephp-dto
A CakePHP plugin for generating immutable Data Transfer Objects with full type safety
Package info
github.com/dereuromark/cakephp-dto
Type:cakephp-plugin
pkg:composer/dereuromark/cakephp-dto
Requires
- php: >=8.2
- ext-json: *
- cakephp/cakephp: ^5.1.1
- cakephp/twig-view: ^2.0.1
- php-collective/dto: ^0.1.17
- sebastian/diff: ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0
Requires (Dev)
- ext-dom: *
- ext-libxml: *
- fig-r/psr2r-sniffer: dev-master
- nette/neon: ^2.4 || ^3.2
- phpunit/phpunit: ^11.5 || ^12.1 || ^13.0
Suggests
- nette/neon: If you want to add a NEON file engine instead of XML.
Provides
None
Conflicts
None
Replaces
None
- dev-master
- 3.1.0
- 3.0.0
- 2.9.2
- 2.9.1
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.1
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.8
- 2.2.7
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.0
- 2.0.0-RC
- 1.8.1
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.0
- 1.0.0-rc2
- 1.0.0-beta
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1
- dev-cake6
- dev-maintenance/cake6-runtime
- dev-maintenance/mapping-docs-followup
- dev-maintenance/cake5-docs-cleanup
- dev-cake4
- dev-cake3
This package is auto-updated.
Last update: 2026-10-11 23:06:56 UTC
README
Generate typed data transfer objects from XML, PHP, YAML or NEON definitions. The plugin integrates php-collective/dto with CakePHP and adds console generation, entity mapping, JSON responses and schema import tools.
Generated DTOs have named getters, setters or immutable with...() methods. They carry data between application layers; ORM entities still represent persisted records.
Documentation
See the version map for older CakePHP branches and Composer constraints for package compatibility.
Examples
Try the Sandbox demo, browse definition examples, or inspect the generated test DTOs.