Skip to content
Sergii Pryz edited this page Sep 13, 2025 · 19 revisions

transfer-object-generator

Welcome to the Symfony-compatible Transfer Object Generator!

This tool helps generate Transfer Objects based on well-structured array/json or YML definitions, making it easier to manage and use Transfer Objects in your PHP projects.

Technology Stack

The Transfer Object Generator uses modern PHP features and best practices, such as:

  • PHP 8.4: utilizes the latest features such as property hooks and asymmetric visibility.
  • FixedArray: uses FixedArray for efficient memory usage as the main storage.
  • Fibers: implements fibers for interruptible execution.
  • Attributes: uses PHP attributes for Transfer Object metadata.
  • Lazy Objects: builds object only when they are used.
  • Interfaces: implements standard interfaces such as IteratorAggregate, JsonSerializable, and Countable.

Key Features

  • Generate Transfer Objects: console command to generate Transfer Objects from YML definitions.
  • Generate Definitions: console command to build Transfer Objects Definitions from well structured array.
  • Supported Types: BakedEnums, Transfer Object Collections, and more.
  • Docker Environment: ready to use Docker SDK for easy contribution.
Clone this wiki locally