Download the PHP package emma/orm without Composer
On this page you can find all versions of the php package emma/orm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package orm
Short Description A PHP 8.2+ Attribute Based ORM for Object/Entity/DTO. Largely inspired by Java SpringBoot annotation based ORM.
License GPL-3.0-only
Informations about the package 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
See: https://github.com/debascoguy/Dbal for more information on connnection manager.
Quick Example Application: To the main fun:
Entity: AppUser
Notice the validation converter for DateTime. Well, here is a full package for validations:
You can easily validate any properties using the Attribute based validation package which already comes as required dependency in this ORM package.
Repository
That's the main gist of it. Start using your Repository as desired. It is recommended to use for Auto-Injecting the Repo into your Services and/or Controller and/or Middleware Service/Containers. The Di is already installed as dependency for this ORM. Enjoy!
There are lots more of many advanced features and supports all type of relationship mapping and lots more support for annonymous function. Official documentation website is coming next month.
All versions of orm with dependencies
emma/common Version ^1.1.4
emma/dbal Version ^1.0.0
emma/di Version ^1.2.3
emma/validation Version ^1.0.1