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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mapper


PHP 8.1+ Latest Stable Version Latest Unstable Version License MIT

The best PHP mapper you've ever seen =)

You can see some examples here:

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

Results here like this.

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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package type-lang/mapper contains the following files

Loading the files please wait ....