type-lang / mapper
Library for mapping variable types to other types
2.0.0-beta7
2026-11-21 14:47 UTC
Requires
- php: ^8.1
- type-lang/parser: ^2.0
- type-lang/printer: ^2.0
- type-lang/reader: ^2.0
- type-lang/types: ^2.0
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|^11.0|^12.0|^13.0
- psr/cache: ^2.0|^3.0
- psr/simple-cache: ^2.0|^3.0
- symfony/config: ^6.4|^7.0|^8.0
- symfony/dependency-injection: ^6.4|^7.0|^8.0
- symfony/expression-language: ^6.4|^7.0|^8.0
- symfony/http-foundation: ^6.4|^7.0|^8.0
- symfony/http-kernel: ^6.4|^7.0|^8.0
- symfony/stopwatch: ^6.4|^7.0|^8.0
- symfony/var-dumper: ^6.4|^7.0|^8.0
- symfony/yaml: ^6.4|^7.0|^8.0
- twig/twig: ^3.0
- type-lang/phpdoc: ^2.0
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/http-kernel: (^6.4|^7.0|^8.0) Allows using the mapper as a Symfony bundle
- symfony/yaml: (^6.4|^7.0|^8.0) Allows reading mapping configuration from YAML files
- 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-21 21:02:13 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+