Skip to content

Batik13/Minorm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Minorm

Simple ORM library with error logging

Installation

git clone https://github.com/Batik13/Minorm.git

or

composer require minorm/minorm:dev-master

Get start:

connect namespace and create an instance of the class

use Minorm\Minorm;
$minorm = new Minorm();

return by id

$minorm->get('pages', 5);

arbitrary request

$minorm->query("SELECT * FROM pages WHERE url='contacts'");

insert

$minorm->insert('pages', [
  NULL, 'Contacts', 'contacts', 'content...'
]);

update

$minorm->update('pages', [
  'text' => 'new content'
], 12);

delete

$minorm->delete('pages', '9,10');

About

Simple ORM library with error logging

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages