eddmash / powerorm
A powerful php orm with automatic migrations
Requires
- php: >=7
- doctrine/collections: ^1.5
- doctrine/dbal: ^v2.5
- symfony/console: ~2.8|~3.1
- symfony/event-dispatcher: ^3.3
- symfony/polyfill-mbstring: ~1.0
- symfony/polyfill-php71: ^1.3
Requires (Dev)
- phpunit/dbunit: ^4.0
- phpunit/phpunit: ^7
- symfony/debug: ^2.8 | ^3.1
- symfony/var-dumper: ^3.2
Suggests
- eddmash/powerform: makes it easy to create and process forms and easily integrate with powerorm models
- eddmash/powerormfaker: powerormfake generates dummy data when using PowerOrm. An extension of Faker library
This package is auto-updated.
Last update: 2024-12-14 00:33:50 UTC
README
PowerOrm
A powerful php orm with automatic migrations inspired by django orm.
Help and Documentation
Get the ORM documentation here PowerOrm Documentation !. Get assistance on the ORM here PowerOrm Help !.
Working with Powerorm
-
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.
Background
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.
Features
- 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
Dependencies
The ORM has the following dependencies:
supports
php 7+
Credits
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