{"repo":"greg-md/php-orm","free":true,"listed":false,"github":"https://github.com/greg-md/php-orm","clone":"git clone https://github.com/greg-md/php-orm.git","description":"A lightweight but powerful ORM(Object-Relational Mapping) library for PHP.","language":"PHP","stars":22,"topics":["greg-md","greg-php","php-orm","orm","php","web-artisans","query-builder","intellisense","big-data","activerecord"],"license":"MIT","category":"databases-storage","readme_excerpt":"Greg ORM A lightweight but powerful ORM(Object-Relational Mapping) library for PHP. Gest Started with establishing a Database Connection, create an Active Record Model of a database table and write your first queries using the Query Builder. Why use Greg ORM? You can read about it in the next article: pending Get Started Requirements Installation Supported Drivers Database Connection - Quick Start Query Builder - Quick Start Active Record Model - Quick Start Requirements PHP Version ^7.1 Installation You can add this library as a local, per-project dependency to your project using Composer: composer require greg-md/php-orm Supported Drivers - MySQL - SQLite In progress: - MS SQL - PostgreSQL - Oracle Database Connection - Quick Start There are two ways of creating a database connection: 1. Instantiate a database connection for a specific driver; 2. Instantiate a connection manager to store multiple database connections. The connection manager implements the same connection strategy. This means that you can define a connection to act like it. In the next example we will use a connection manager to store multiple connections of different drivers. Now you can work with this manager: Full documentation can be found here. Active Record Model - Quick Start The Active Record Model represents a table schema, an entity or a collection of entities of that table, integrated with the Query Builder to speed up your coding process. Let's say you have Users table: Let's create the model for","default_branch":null,"files":null,"tree":[],"storefront":"/r/greg-md","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/greg-md/php-orm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}