PHPackages                             emma/orm - 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. emma/orm

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

emma/orm
========

A PHP 8.2+ Attribute Based ORM for Object/Entity/DTO. Largely inspired by Java SpringBoot annotation based ORM.

v1.0.8(2y ago)0291GPL-3.0-onlyPHPPHP &gt;=8.2

Since Jun 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/debascoguy/ORM)[ Packagist](https://packagist.org/packages/emma/orm)[ RSS](/packages/emma-orm/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (8)Versions (10)Used By (1)

ORM
===

[](#orm)

A PHP 8.2+ Attribute Based ORM for Object/Entity/DTO. Largely inspired by Java SpringBoot annotation based ORM.

PHP introduced it's own in-built annotation called PHP atttribute. Having used the Java springboot in a couple of project and found out a similar ORM can be implemented in PHP for easy injection and validation of object while also implementing complex relation mapping easily.

Hey, the good news here is if you're once upon a time a Java SpringBoot developer and looking to switch to PHP, this is the best ORM for you. I will be launching the official documentation website soon. For now, here is a quick start:

Dbal Connection
---------------

[](#dbal-connection)

```
Emma\ORM\Connection\Connection::getInstance()->connect([]);
//This accept the Dbal ConnectionProperty or array of connection details.

```

See:  for more information on connnection manager.

Quick Example Application: To the main fun:
-------------------------------------------

[](#quick-example-application-to-the-main-fun)

Entity: AppUser
---------------

[](#entity-appuser)

```
