smirnov-o/mapper

PHP Mapping and ReadOnly Dto with Attributes

Maintainers

Package info

github.com/smirnov-o/Mapper

pkg:composer/smirnov-o/mapper

Statistics

Installs: 449

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

2.0.0 2026-01-30 13:11 UTC

This package is auto-updated.

Last update: 2026-03-30 06:44:55 UTC


README

Packagist Version (custom server) Packagist License (custom server)

RU

  • Маппинг массива любой вложенности в новый массив или свойства класса.
  • Dto с использованием атрибутов (ElementName, CastMethod, CastDefault, CastMethodDefault).
  • В процессе обработки массива можно изменять данные своими методами.

Пример Dto в Example.

Документация

EN

  • Mapping an array of any nesting into a new array or class properties.
  • Dto using attributes (ElementName, CastMethod, Cast Default).
  • During the processing of the array, you can change the data using your own methods.

An example of a Dto in Example.

Documentation

Установка / Install

"require": {
    "php": "^8.2"
  }
composer require smirnov-o/mapper