2017 © Pedro Peláez
 

library orm

Lightweight ORM

image

drmvc/orm

Lightweight ORM

  • Thursday, April 19, 2018
  • by EvilFreelancer
  • Repository
  • 2 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Latest Stable Version Build Status Total Downloads License PHP 7 ready Code Climate Scrutinizer CQ Code Coverage, (*1)

DrMVC\Orm

Simple and easy-to-use lightweight ORM., (*2)

composer require drmvc/orm

Install

composer require drmvc/orm, (*3)

How to use


<?php use DrMVC\Database; use DrMVC\Config; use DrMVC\Orm\Entity; use DrMVC\Orm\Orm; require_once __DIR__ . '/../vendor/autoload.php'; // Create config object and load database configuration $config = new Config(); $config->load(__DIR__ . '/config.php'); // Open connection with database $db = new Database($config); $instance = $db->getInstance(); $orm = new Orm('test_table', $instance); $entity = new Entity(); $entity->name = 'Kolya'; $entity->email = 'qweqwe'; $entity->password = 'qwerty3'; $orm->saveEntity($entity); // if find, update data if ($entity = $orm->findById(1)) { $entity->name = 'Pavel'; $entity->email = 'pavel@mail.ru'; $entity->password = 'qwerty3'; $orm->saveEntity($entity); } foreach ($orm->findAll() as $en) { echo '
' . print_r($en->name . ' - ' . $en->id, true) . '
'; echo '
' . print_r($orm->deleteEntity($en), true) . '
'; }

The Versions

19/04 2018

dev-master

9999999-dev https://drmvc.com/

Lightweight ORM

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Koenig

orm table data gateway

18/04 2018

3.0.2

3.0.2.0 https://drmvc.com/

Lightweight ORM

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Koenig

orm table data gateway

18/04 2018

dev-fix-tests

dev-fix-tests https://drmvc.com/

Lightweight ORM

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Koenig

orm table data gateway

17/04 2018

3.0.1

3.0.1.0 https://drmvc.com/

Lightweight ORM

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Koenig

orm table data gateway

17/04 2018

3.0.0

3.0.0.0 https://drmvc.com/

Lightweight ORM

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Koenig

orm table data gateway