PHPackages                             atlas/mapper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. atlas/mapper

ActiveLibrary[Database &amp; ORM](/categories/database)

atlas/mapper
============

A data mapper for the persistence model.

1.4.1(2y ago)769.7k↓45.2%7[5 issues](https://github.com/atlasphp/Atlas.Mapper/issues)3MITPHPPHP &gt;=7.1.0CI failing

Since Apr 19Pushed 2y ago3 watchersCompare

[ Source](https://github.com/atlasphp/Atlas.Mapper)[ Packagist](https://packagist.org/packages/atlas/mapper)[ Docs](http://github.com/atlasphp/Atlas.Mapper)[ RSS](/packages/atlas-mapper/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (21)Used By (3)

Atlas.Mapper
============

[](#atlasmapper)

A data mapper implementation for Atlas. Though it is primarily intended as the heart of [Atlas.Orm](https://github.com/atlasphp/Atlas.Orm), it may be used independently of that package.

Getting Started
---------------

[](#getting-started)

First, you will need to create the prerequsite data-source classes using [Atlas.Cli 2.x](https://github.com/atlasphp/Atlas.Cli).

Once you have done so, create a *MapperLocator* using the static `new()` method and pass your PDO connection parameters:

```
use Atlas\Table\MapperLocator;

$mapperLocator = MapperLocator::new('sqlite::memory:'')
```

You can then use the locator to retrieve a *Mapper* by its class name.

```
use Atlas\Testing\DataSource\Thread\ThreadMapper;

$threadMapper = $mapperLocator->get(ThreadMapper::CLASS)
```

From there you can fetch, insert, update, delete, and persist *Record* objects.

In the absence of full documentation, please review these *Mapper* methods instead:

- fetchRecord()
- fetchRecordBy()
- fetchRecords()
- fetchRecordsBy()
- fetchRecordSet()
- fetchRecordSetBy()
- select()
- insert()
- update()
- delete()
- persist()

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance6

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 56.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~124 days

Recently: every ~211 days

Total

17

Last Release

966d ago

Major Versions

1.3.3 → 2.x-dev2022-06-12

PHP version history (2 changes)1.0.0-alpha1PHP &gt;=7.1.0

2.x-devPHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25754?v=4)[Paul M. Jones](/maintainers/pmjones)[@pmjones](https://github.com/pmjones)

---

Top Contributors

[![pmjones](https://avatars.githubusercontent.com/u/25754?v=4)](https://github.com/pmjones "pmjones (17 commits)")[![far-blue](https://avatars.githubusercontent.com/u/344317?v=4)](https://github.com/far-blue "far-blue (8 commits)")[![sunkan](https://avatars.githubusercontent.com/u/568492?v=4)](https://github.com/sunkan "sunkan (2 commits)")[![conlanpatrek](https://avatars.githubusercontent.com/u/7852096?v=4)](https://github.com/conlanpatrek "conlanpatrek (1 commits)")[![ElGigi](https://avatars.githubusercontent.com/u/18268216?v=4)](https://github.com/ElGigi "ElGigi (1 commits)")[![jakejohns](https://avatars.githubusercontent.com/u/174708?v=4)](https://github.com/jakejohns "jakejohns (1 commits)")

---

Tags

dataormsqlmappingmapper

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/atlas-mapper/health.svg)

```
[![Health](https://phpackages.com/badges/atlas-mapper/health.svg)](https://phpackages.com/packages/atlas-mapper)
```

###  Alternatives

[atlas/orm

An ORM for your persistence model (not your domain model).

429139.8k12](/packages/atlas-orm)[doctrine/mongodb-odm

PHP Doctrine MongoDB Object Document Mapper (ODM) provides transparent persistence for PHP objects to MongoDB.

1.1k23.3M302](/packages/doctrine-mongodb-odm)[atlas/cli

Command-line interface for Atlas.

14124.6k10](/packages/atlas-cli)[kassko/data-mapper

A mapper which gives a lot of features to representate some raw data like objects

1338.5k1](/packages/kassko-data-mapper)[event4u/data-helpers

Framework-agnostic PHP library for data mapping, DTOs and utilities. Includes DataMapper, SimpleDto/LiteDto, DataAccessor/Mutator/Filter and helper classes (MathHelper, EnvHelper, etc.). Works with Laravel, Symfony/Doctrine or standalone PHP.

1421.5k](/packages/event4u-data-helpers)[bauer01/unimapper

Universal mapping tool for collecting data from different sources

102.6k6](/packages/bauer01-unimapper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
