Cristian Molina Blog

Home About me Email GitHub

New version of SimpleORM

Hi, I’ve been working on my ORM last days and I’ve reworked how results work.

First of all, what’s an ORM?

An ORM is object-relational mapping, that is a programming technique for converting data between incompatible type systems in object-oriented programming languages, i.e SQL into PHP or Java. Wikipedia

My ORM is made in PHP and helps you to make queries to the database. Example:

$result = MyModel::all()->execute();

is the same as you write

$query = $connection->prepare("SELECT * FROM my_table");
$result = $query->execute();

As you can see, the ORM simplifies all queries and allows you to loop through results in a simple way using loop method:

while($result->loop()) {

This ORM has the basic functions: select, update, insert, delete, order by, limit, and simple where. I know there are lots of ORM’s but this one acomplish all my needs and

Feel free to clone or fork it!

See SimpleORM

Home About me Email GitHub