PHPackages                             bonfim/orm - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. bonfim/orm

ActiveLibrary[Database &amp; ORM](/categories/database)

bonfim/orm
==========

Implementação do padrão de projeto active record em PHP

v2.0(7y ago)210MITPHPPHP ~7.1

Since May 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/BonfimLabs/PHP-ORM)[ Packagist](https://packagist.org/packages/bonfim/orm)[ Docs](https://github.com/EdsonOnildoJR/activerecord.php)[ RSS](/packages/bonfim-orm/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

activerecord.php
================

[](#activerecordphp)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5acb8b5c66dd9e6ec89971347f17a5245290d8e5a10702a0c8f3037caa2f3483/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6564736f6e6f6e696c646f2f6f726d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/edsononildo/orm)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/add0e58e35f614ba26593f32ea7e371bb9d95e1330007f8df5655f6e47c1807c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4564736f6e4f6e696c646f4a522f6163746976657265636f72642e7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/EdsonOnildoJR/activerecord.php)[![Coverage Status](https://camo.githubusercontent.com/20a93651f24f3b169852e3b1f1d537d0983a294184a4350251af9b700e480802/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f4564736f6e4f6e696c646f4a522f6163746976657265636f72642e7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/EdsonOnildoJR/activerecord.php/code-structure)[![Quality Score](https://camo.githubusercontent.com/19dd05cd12f3bcb5b74eaa137b132932d316d1d4b73353583de31d396a9bcaca/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4564736f6e4f6e696c646f4a522f6163746976657265636f72642e7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/EdsonOnildoJR/activerecord.php)[![Total Downloads](https://camo.githubusercontent.com/63302000a7ca05436c4e0a2362ab580333b068e3686212d6db175f0be6545d42/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6564736f6e6f6e696c646f2f6f726d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/edsononildo/orm)

Implementação do padrão de projeto active record em PHP

Table of Contents
-----------------

[](#table-of-contents)

- [Prerequisites](#prerequisites)
- [Supported Databases](#supported-databases)
- [Installation](#installation)
- [Basic CRUD](#basic-crud)
    - [Retrieve](#retrieve)
    - [Create](#create)
    - [Update](#update)
    - [Delete](#delete)
- [Contributing](#contributing)
- [Security](#security)
- [Credits](#credits)
- [License](#license)

Prerequisites
-------------

[](#prerequisites)

- PHP 7.1+
- PDO driver for your respective database

Supported Databases
-------------------

[](#supported-databases)

- MySQL
- SQLite
- PostgreSQL
- Oracle

Installation
------------

[](#installation)

Require via [composer](https://getcomposer.org/download/)

```
$ composer require edsononildo/orm
```

Create an **index.php** file and require the autoload.php of composer

```
