type-lang / mapper
Library for mapping variable types to other types
2.0.0-beta10
2026-11-28 02:24 UTC
Requires
- php: ^8.1
- type-lang/parser: 2.0.0-beta10
- type-lang/printer: 2.0.0-beta10
- type-lang/reader: 2.0.0-beta10
- type-lang/types: 2.0.0-beta10
Requires (Dev)
- jetbrains/phpstorm-attributes: ^1.3
- nette/neon: ^3.4
- nikic/php-parser: ^5.9
- phpstan/phpstan: ^2.3.6
- phpunit/phpunit: ^10.5.36|^11.0|^12.0|^13.0
- psr/cache: ^2.0|^3.0
- psr/simple-cache: ^2.0|^3.0
- symfony/expression-language: ^6.4|^7.0|^8.0
- symfony/yaml: ^6.4|^7.0|^8.0
- type-lang/phpdoc: 2.0.0-beta10
Suggests
- ext-json: (*) Allows reading mapping configuration from JSON files
- nette/neon: (^3.4) Allows reading mapping configuration from NEON files
- phpstan/phpstan: (^2.0) Allows checking the syntax of the types in mapper calls and attributes
- psr/cache: (^2.0|^3.0) Allows caching metadata in a PSR-6 pool
- psr/simple-cache: (^2.0|^3.0) Allows caching metadata in a PSR-16 cache
- symfony/expression-language: (^6.4|^7.0|^8.0) Allows skipping properties by an expression
- symfony/yaml: (^6.4|^7.0|^8.0) Allows reading mapping configuration from YAML files
- type-lang/mapper-symfony: (^2.0) Allows using the mapper as a Symfony bundle
- type-lang/phpdoc: (^2.0) Allows reading property types from PHPDoc
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-30 11:30:22 UTC
README
Maps PHP values to other types described with TypeLang syntax.
Full documentation is available at typelang.dev.
Installation
Install the package via Composer:
composer require type-lang/mapper
Requirements:
- PHP 8.1+