PHPackages                             orisai/nextras-object-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. orisai/nextras-object-mapper

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

orisai/nextras-object-mapper
============================

orisai/object-mapper extension for nextras/orm

v1.x-dev(1y ago)312MPL-2.0PHPPHP 7.4 - 8.4CI passing

Since Jan 21Pushed 1y ago3 watchersCompare

[ Source](https://github.com/orisai/nextras-object-mapper)[ Packagist](https://packagist.org/packages/orisai/nextras-object-mapper)[ Docs](https://github.com/orisai/nextras-object-mapper)[ RSS](/packages/orisai-nextras-object-mapper/feed)WikiDiscussions v1.x Synced 1mo ago

READMEChangelogDependencies (14)Versions (1)Used By (0)

 [![Orisai](https://github.com/orisai/.github/raw/main/images/repo_title.png?raw=true)](https://github.com/orisai/.github/blob/main/images/repo_title.png?raw=true)
 Nextras Object Mapper
============================================================================================================================================================================================

[](#nextras-object-mapper)

 [orisai/object-mapper](https://github.com/orisai/object-mapper) extension for [nextras/orm](https://github.com/nextras/orm)

 📄 Check out our [documentation](docs/README.md).

 💸 If you like Orisai, please [make a donation](https://orisai.dev/sponsor). Thank you!

 [![](https://github.com/orisai/nextras-object-mapper/actions/workflows/ci.yaml/badge.svg?branch=v1.x)](https://github.com/orisai/nextras-object-mapper/actions?query=workflow:CI+branch:v1.x) [![](https://camo.githubusercontent.com/73e3d008c3c58122e0660b9d41c1bb6f86f27687faeea991a3c367884a02c6d8/68747470733a2f2f62616467656e2e6e65742f636f766572616c6c732f632f6769746875622f6f72697361692f6e6578747261732d6f626a6563742d6d61707065722f76312e783f63616368653d333030)](https://coveralls.io/github/orisai/nextras-object-mapper?branch=v1.x) [![](https://camo.githubusercontent.com/26f31b3236098873180991cffe61c4f15979f8387bd4acc17d7746267c135b0f/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d68747470733a2f2f62616467652d6170692e737472796b65722d6d757461746f722e696f2f6769746875622e636f6d2f6f72697361692f6e6578747261732d6f626a6563742d6d61707065722f76312e78)](https://dashboard.stryker-mutator.io/reports/github.com/orisai/nextras-object-mapper/v1.x) [![](https://camo.githubusercontent.com/bf24ddcb9605ac73c76589139c5ffc31e0cb79a26f0d29d99a41fac1cd1e2284/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f6f72697361692f6e6578747261732d6f626a6563742d6d61707065723f63616368653d33363030)](https://packagist.org/packages/orisai/nextras-object-mapper) [![](https://camo.githubusercontent.com/d78cd0bdccc35e84a662a9874fc0ce0ec4e433a2c8c9827906f47bd9d19e7b4a/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6f72697361692f6e6578747261732d6f626a6563742d6d61707065723f63616368653d33363030)](https://packagist.org/packages/orisai/nextras-object-mapper) [![](https://camo.githubusercontent.com/40b2374865c7727b1568a7b77cc1a8068979ac265d85d659fe73b2d337b458e6/68747470733a2f2f62616467656e2e6e65742f62616467652f6c6963656e73652f4d504c2d322e302f626c75653f63616368653d33363030)](https://choosealicense.com/licenses/mpl-2.0/)

 Attributes definition```
use App\User\DB\User;
use OriNextras\ObjectMapper\Rules\EntityFromId;
use Orisai\ObjectMapper\MappedObject;
use Orisai\ObjectMapper\Modifiers\FieldName;
use Orisai\ObjectMapper\Rules\IntValue;

final class EntityFetchingInput implements MappedObject
{

	#[FieldName('userId')]
	#[EntityFromId(
		name: 'userId',
		entity: User::class,
		idDefinition: new IntValue(unsigned: true, castNumericString: true)),
	]
	public User $user;

}
```

 Annotations definition```
use App\User\DB\User;
use OriNextras\ObjectMapper\Rules\EntityFromId;
use Orisai\ObjectMapper\MappedObject;
use Orisai\ObjectMapper\Modifiers\FieldName;
use Orisai\ObjectMapper\Rules\IntValue;

final class EntityFetchingInput implements MappedObject
{

	/**
	 * @FieldName("userId")
	 * @EntityFromId(
	 *     name="userId"
	 *     entity=User::class
	 *     idDefinition=@IntValue(unsigned=true, castNumericString=true)
	 * )
	 */
	public User $user;

}
```

```
$data = [
	'userId' => 666,
];
$input = $processor->process($data, EntityFetchingInput::class);
// $input == EntityFetchingInput(user: User(id: 666, /* ... */))
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance42

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

482d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20974277?v=4)[Marek Bartoš](/maintainers/mabar)[@mabar](https://github.com/mabar)

---

Top Contributors

[![mabar](https://avatars.githubusercontent.com/u/20974277?v=4)](https://github.com/mabar "mabar (21 commits)")

---

Tags

ormentitymappernextrasorisai

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/orisai-nextras-object-mapper/health.svg)

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

###  Alternatives

[doctrine/persistence

The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.

4.1k286.5M762](/packages/doctrine-persistence)[vlucas/spot2

Simple DataMapper built on top of Doctrine DBAL

605392.8k7](/packages/vlucas-spot2)[analogue/orm

An intuitive Data Mapper ORM for PHP and Laravel

63547.1k3](/packages/analogue-orm)[nextras/orm

Nextras Orm framework

3141.2M42](/packages/nextras-orm)[atlas/orm

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

429139.8k12](/packages/atlas-orm)[ergebnis/factory-bot

Provides a fixture factory for doctrine/orm entities.

81702.8k](/packages/ergebnis-factory-bot)

PHPackages © 2026

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