Download the PHP package php-etl/metadata without Composer
On this page you can find all versions of the php package php-etl/metadata. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download php-etl/metadata
More information about php-etl/metadata
Files in php-etl/metadata
Package metadata
Short Description Describe data structures, to auto-configure and handle data transformation and data manipulation.
License MIT
Informations about the package metadata
PHP Data Structures Meta
What is it about?
This component aims at describing data structures in order to help other packages to auto-configure and handle data transformation and data manipulation.
Installation
To use this package in your application, require it via composer:
Run the tests
There are PHPSpec tests declared in this package to ensure everything is running fine.
Use this package to read metadata of existing code
In order to read the metadata of existing PHP code, you may use the automatic type guesser. It can be initialised with the following code:
Then, use the instance as a functor to automatically discover the types metadata.
Example of a DTO class metadata fetcher:
Automatic class metadata guessing
In order to simplify the class metadata building, there is a metadata guesser you can use to ease the building of metadata.
PHP version and typed properties
This package works from php 7.2+.
In case you are running it with a version prior to 7.4, the property type hinting is not active and a dummy metadata reader can replace the standard one.
Additionally, it you don't want the PHPDocs to be considered, you may use another dummy metadata reader for this specific part.
Documentation
To go further and see the DTO structure, check the object reference.
All versions of metadata with dependencies
phpactor/docblock Version ^0.3.0@dev
nikic/php-parser Version ^4.9@dev
doctrine/inflector Version ^2.0
php-etl/metadata-contracts Version 0.2.*