bowlofsoup/cake-dto-mapper

Map a CakePHP entity into a DTO

Installs: 40 812

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 2

Open Issues: 0

pkg:composer/bowlofsoup/cake-dto-mapper

1.0.0 2023-08-30 08:51 UTC

This package is auto-updated.

Last update: 2025-09-29 02:51:00 UTC


README

Minimum PHP Version

Installation

composer require bowlofsoup/cake-dto-mapper

Quick overview

Has two main functionalities:

(1) Converts a CakePHP entity into a DTO; EntityToDtoMapper.

Since CakePHP, by default, does not have actual properties on an entity, an interface must be implemented on the entity to ensure that $this->_properties is used.

(2) Converts an associative array into a DTO; ArrayToDtoMapper.