Skip to content

CakePHP DTOTyped data between your application layers

Define fields, generate PHP classes, and pass data through methods your IDE can check.

CakePHP DTO logo

CakePHP DTO integrates php-collective/dto with CakePHP. A DTO carries data with named fields; it does not save records or replace ORM entities.

Start with one small DTO. The beginner guide creates a working class without a database or admin interface.

For shared DTO features, see the parent library documentation and php-collective/dto repository. Use this site for CakePHP setup, commands and ORM integration.