Skip to content

eddmash/powerorm

Repository files navigation

Documentation Status StyleCI Build Status Latest Stable Version Dependency Status Total Downloads Latest Unstable Version License

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

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