Back to directory

AutoMapper

A PHP library that maps one object to another automatically using on-the-fly generated code, avoiding both hand-written mapping code and slower reflection-based alternatives.

Visit website (opens in a new tab)automapper.jolicode.com
AutoMapper

AutoMapper is a PHP library that removes the need to hand-write code that copies fields from one object into another, a task the project describes as boring and often handled less efficiently by other alternatives. It generates the mapping code on the fly rather than relying on reflection, which the project says makes it very fast.

It installs through Composer and is used by calling a create method to build a mapper, then a map method to convert data into a target class. Further usage details are documented separately, and the project provides an issue tracker on GitHub for support.

More in Libraries

See all 292
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • TradeCanvas

    bonguynvan.github.io

    A zero-dependency canvas charting engine for building TradingView-style trading charts in JavaScript, with 66 technical indicators, 24 drawing tools, 17 chart types, and real-time streaming.

  • 3d retro graphics

    3d-retro.com

    A free, CC0-licensed library of copy-paste retro 3D and demoscene graphics effects, such as plasma, raytracing, and voxel terrain, runnable as WebGL 1 or plain 2D canvas.