Download the PHP package type-lang/mapper without Composer
On this page you can find all versions of the php package type-lang/mapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download type-lang/mapper
More information about type-lang/mapper
Files in type-lang/mapper
Download type-lang/mapper
More information about type-lang/mapper
Files in type-lang/mapper
Vendor type-lang
Package mapper
Short Description Library for mapping variable types to other types
License MIT
Package mapper
Short Description Library for mapping variable types to other types
License MIT
Please rate this library. Is it a good library?
Informations about the package mapper
The best PHP mapper you've ever seen =)
You can see some examples here:
- 01.normalization
- 01.object-normalization
- 02.date-normalization
- 03.date-format-normalization
- 04.untyped-object-normalization
- 05.typed-object-normalization
- 06.inherited-types-normalization
- 07.collection-types-normalization
- 08.object-output-normalization
- 02.errors
- 01.custom-type-printer
- 02.extended-type-printer
- 03.custom-path-printer
- 04.custom-value-printer
- 03.types
- 01.type-platforms
- 02.custom-type
- 03.custom-type-template-arguments
- 04.custom-platform
- 04.mapping
- 01.reflection-mapping
- 02.attribute-mapping
- 03.driver-inheritance-mapping
- 04.phpdoc-mapping
- 05.phpdoc-custom-tags-mapping
- 06.cache
Full documentation in progress...
Installation
Mapper package is available as Composer repository and can be installed using the following command in a root of your project:
Quick Start
Benchmarks
Sample: An object that contains a collection of objects, which contains another collection of objects.
The results are sorted by mode time.
Denormalization
Denormalization: Transformation from raw payload (array) to concrete object.
benchmark | memory | min | max | mode | rstdev |
---|---|---|---|---|---|
TypeLangAttributesBench | 1.444mb | 141.800μs | 156.050μs | 145.760μs | ±2.13% |
JMSAttributesBench | 1.429mb | 144.400μs | 157.100μs | 146.736μs | ±2.12% |
TypeLangDocBlockBench | 1.642mb | 144.800μs | 153.850μs | 148.059μs | ±1.29% |
ValinorBench | 1.344mb | 217.550μs | 229.150μs | 220.319μs | ±1.41% |
SymfonyDocBlockBench | 2.163mb | 495.350μs | 507.950μs | 499.492μs | ±0.72% |
SymfonyPHPStanBench | 1.426mb | 506.650μs | 544.500μs | 510.798μs | ±1.53% |
Denormalization + Cache
benchmark | memory | min | max | mode | rstdev |
---|---|---|---|---|---|
TypeLangDocBlockBench | 1.544mb | 113.250μs | 125.350μs | 115.831μs | ±2.64% |
JMSAttributesBench | 1.429mb | 125.850μs | 148.750μs | 128.718μs | ±3.68% |
TypeLangAttributesBench | 1.436mb | 170.100μs | 182.200μs | 173.155μs | ±1.70% |
ValinorBench | 1.257mb | 341.000μs | 374.450μs | 346.891μs | ±1.94% |
SymfonyPHPStanBench | 1.370mb | 583.600μs | 609.050μs | 590.473μs | ±0.88% |
SymfonyDocBlockBench | 2.163mb | 644.350μs | 686.550μs | 651.617μs | ±1.32% |
Normalization
Normalization: Transformation from object to raw payload (array).
benchmark | memory | min | max | mode | rstdev |
---|---|---|---|---|---|
JMSAttributesBench | 1.476mb | 93.550μs | 125.100μs | 112.011μs | ±9.21% |
TypeLangDocBlockBench | 1.643mb | 110.650μs | 133.000μs | 112.881μs | ±4.25% |
SymfonyPHPStanBench | 1.370mb | 112.850μs | 121.850μs | 115.140μs | ±1.89% |
TypeLangAttributesBench | 1.444mb | 117.300μs | 127.250μs | 120.649μs | ±2.43% |
ValinorBench | 1.251mb | 127.300μs | 135.350μs | 129.379μs | ±1.72% |
SymfonyDocBlockBench | 2.163mb | 153.000μs | 161.800μs | 155.170μs | ±1.39% |
Normalization + Cache
benchmark | memory | min | max | mode | rstdev |
---|---|---|---|---|---|
TypeLangAttributesBench | 1.447mb | 65.850μs | 94.650μs | 91.945μs | ±6.51% |
TypeLangDocBlockBench | 1.544mb | 91.950μs | 97.250μs | 93.070μs | ±1.49% |
JMSAttributesBench | 1.429mb | 88.150μs | 105.600μs | 100.956μs | ±3.31% |
SymfonyPHPStanBench | 1.370mb | 136.050μs | 147.900μs | 138.879μs | ±1.96% |
ValinorBench | 1.256mb | 114.450μs | 161.600μs | 152.558μs | ±5.88% |
SymfonyDocBlockBench | 2.163mb | 164.300μs | 221.300μs | 212.265μs | ±5.18% |
All versions of mapper with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
psr/log Version ^1.0|^2.0|^3.0
psr/simple-cache Version ^1.0|^2.0|^3.0
type-lang/parser Version ^1.3
type-lang/printer Version ^1.2
psr/log Version ^1.0|^2.0|^3.0
psr/simple-cache Version ^1.0|^2.0|^3.0
type-lang/parser Version ^1.3
type-lang/printer Version ^1.2
The package type-lang/mapper contains the following files
Loading the files please wait ....