Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eddmash/powerorm

A very simple but effective php orm
https://github.com/eddmash/powerorm

codeigniter database-table dbal laravel migrations orm php php-orm powerorm query

Last synced: 2 months ago
JSON representation

A very simple but effective php orm

Awesome Lists containing this project

README

        

[![Documentation Status](https://readthedocs.org/projects/powerorm/badge/?version=latest)](http://powerorm.readthedocs.io/en/latest/?badge=latest)
[![StyleCI](https://styleci.io/repos/50822043/shield?style=flat)](https://styleci.io/repos/50822043)
[![Build Status](https://travis-ci.org/eddmash/powerorm.svg?branch=master)](https://travis-ci.org/eddmash/powerorm)
[![Latest Stable Version](https://poser.pugx.org/eddmash/powerorm/v/stable)](https://packagist.org/packages/eddmash/powerorm)
[![Dependency Status](https://dependencyci.com/github/eddmash/powerorm/badge)](https://dependencyci.com/github/eddmash/powerorm)
[![Total Downloads](https://poser.pugx.org/eddmash/powerorm/downloads)](https://packagist.org/packages/eddmash/powerorm)
[![Latest Unstable Version](https://poser.pugx.org/eddmash/powerorm/v/unstable)](https://packagist.org/packages/eddmash/powerorm)
[![License](https://poser.pugx.org/eddmash/powerorm/license)](https://packagist.org/packages/eddmash/powerorm)

# PowerOrm
A powerful php orm with automatic migrations inspired by django orm.

# Help and Documentation
Get the ORM documentation here [PowerOrm Documentation !](http://powerorm.readthedocs.io/).
Get assistance on the ORM here [PowerOrm Help !](https://groups.google.com/d/forum/powerorm-users).

## Working with Powerorm

- [Install](http://powerorm.readthedocs.io/en/master/orm/intro/install.html) Powerorm

- [Using](http://powerorm.readthedocs.io/en/master/orm/intro/index.html) powerorm

- [Integrating](http://powerorm.readthedocs.io/en/master/orm/integrations/index.html)
powerorm with your framework of choice.

Visit the [Documentation](http://powerorm.readthedocs.io/) to learn more.

Visit [Demo app](https://github.com/eddmash/powerocomponentsdemo) 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:

- [Doctrine dbal Library](http://www.doctrine-project.org/projects/dbal.html).
- [Symfony console component](http://symfony.com/doc/current/components/console.html).
- [Symfony polyfill-mbstring component](http://symfony.com/blog/new-in-symfony-2-8-polyfill-components).

# 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