A powerful php orm with automatic migrations inspired by django orm.
Get the ORM documentation here PowerOrm Documentation !. Get assistance on the ORM here PowerOrm Help !.
-
Install Powerorm
-
Using powerorm
-
Integrating powerorm with your framework of choice.
Visit the Documentation to learn more.
Visit Demo app to see orm and other components in use.
I created this project because i required a lightweight easy to use orm that i could use in my Codeigniter projects with the least amount of configuration .
Sort of plug and play
if you will. While at the same time reducing repetition and providing a consistent way to deal
with databases.
That is, i wanted to avoid the repetitive actions of creating migration files, creating query method to query the database and also wanted to be able to see all my database table fields on my models without me going to the database tables themselves and use this fields to interact with the database.
This ORM is heavily inspired by Django ORM. Because i personally love how there orm works. If you have worked with django orm you will right at home.
- Allows to fully think of the database and its table in an object oriented manner i.e. table are represented by model and columns are represented by fields.
- Create automatic migrations.
- Create forms automatically based on models.
- All fields visible on the model, no need to look at the database table when you want to interact with the database.
- Provides database interaction methods
The ORM has the following dependencies:
php 7+
I have used the following frameworks as a guiding hand, and in most cases i have replicated how Django framework has approached a problem, and in some cases i have borrowed some source code :
- Django framework
- FuelPHP framework
- Yii2 framework
- CakePHP framework
- Laravel framework
- Symfony2 framework
- Codeigniter 4 framework