PHPackages                             laztopaz/potato-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. laztopaz/potato-orm

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

laztopaz/potato-orm
===================

This package aims at building a simple agnostic ORM that can perform the basic crud database operations.

v1.0(5y ago)58MITPHPPHP &gt;=5.5.9CI failing

Since Feb 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/olotintemitope/Potato-ORM)[ Packagist](https://packagist.org/packages/laztopaz/potato-orm)[ RSS](/packages/laztopaz-potato-orm/feed)WikiDiscussions test Synced today

READMEChangelog (1)Dependencies (4)Versions (4)Used By (0)

Potato ORM
----------

[](#potato-orm)

[![Coverage Status](https://camo.githubusercontent.com/59d8e9f8d8589af7daceb8139f57f5a79556e32ceccdb4276c46e6f28aadb78c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f616e64656c612d746f6c6f74696e2f506f7461746f2d4f524d2f62616467652e7376673f6272616e63683d74657374)](https://coveralls.io/github/andela-tolotin/Potato-ORM?branch=test) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/3a2f378892bc689878aca6464ea6522cfb0232cf5b36f47c10f1aeebe2233802/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e64656c612d746f6c6f74696e2f506f7461746f2d4f524d2f6261646765732f7175616c6974792d73636f72652e706e673f623d74657374)](https://scrutinizer-ci.com/g/andela-tolotin/Potato-ORM/?branch=test) [![Build Status](https://camo.githubusercontent.com/265802697eee5559b05acf59020daa3125c5b3348c1c58c3ffc382705d1bcb8e/68747470733a2f2f7472617669732d63692e6f72672f616e64656c612d746f6c6f74696e2f506f7461746f2d4f524d2e7376673f6272616e63683d74657374)](https://travis-ci.org/andela-tolotin/Potato-ORM)

Potato-ORM is a simple agnostic ORM (Object Relational Mapping) package that can perform basic CRUD (Create, Read, Update and Delete) operations.

How to use this package
-----------------------

[](#how-to-use-this-package)

Composer installation is required before using this package. To install a composer, try running this command on your terminal.

```
$ curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin

```

Installation
============

[](#installation)

PHP 5.5+ and Composer are required.

Via composer

```
$ composer require laztopaz/potato-orm

```

Install
=======

[](#install)

```
$ composer install

```

After you have installed the package via composer, then you are set to go. Next line of action is to create a class that extends a base Model class under the nameapace Laztopaz/potatoORM. For instance, a class for users or Users table should look like this:

```
