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

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

opeyemiabiodun/potato-orm
=========================

A simple PHP ORM.

24PHP

Since Jan 11Pushed 10y ago1 watchersCompare

[ Source](https://github.com/andela-oogunjimi/Potato-ORM)[ Packagist](https://packagist.org/packages/opeyemiabiodun/potato-orm)[ RSS](/packages/opeyemiabiodun-potato-orm/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Potato-ORM
==========

[](#potato-orm)

[![Latest Version on Packagist](https://camo.githubusercontent.com/54f469ab0f64b1afa818677ed04c041fcfbcf2781c2dbd264836047924047855/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76312e302e302d6f72616e67652e737667)](https://packagist.org/packages/opeyemiabiodun/potato-orm)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/a1529379a1f12afd2d7c6df62692de73579cd75849dcd07603a4cae7bcdbc894/68747470733a2f2f7472617669732d63692e6f72672f616e64656c612d6f6f67756e6a696d692f506f7461746f2d4f524d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/andela-oogunjimi/Potato-ORM)[![Code Coverage](https://camo.githubusercontent.com/4bbe2045c2d96bf0326c27255ee8af9478f5bf2923c2d5082018c8b85c1b992d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e64656c612d6f6f67756e6a696d692f506f7461746f2d4f524d2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/andela-oogunjimi/Potato-ORM/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a4952de8b98b89bfbfbe8e95193ba97faccca2f87c2e4122e48eb57500b18784/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e64656c612d6f6f67756e6a696d692f506f7461746f2d4f524d2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/andela-oogunjimi/Potato-ORM/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/47b13a82271053075a70f4639dae7076529057783c5897459f7f6e78cdebaf15/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f706579656d696162696f64756e2f706f7461746f2d6f726d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/opeyemiabiodun/potato-orm)

###### CheckPoint 2 - Potato ORM

[](#checkpoint-2---potato-orm)

A Simple PHP ORM (Object Relational Mapper). PSR-2 coding standard was adopted in writing the package. The PSR-4 autoloading convention was also adopted.

Install
-------

[](#install)

Via Composer

```
$ composer require opeyemiabiodun/potato-orm
```

Usage
-----

[](#usage)

```
#Create a record in the database

$user = new User();
$user->name = "Tayo";
$user->address = "54, Kilani street, Akarigbo, Jiyanland.";
$user->phone = "07834531265";
$user->save();

#Find a record from the database

$user = User::find($id);

#Update a record

$user = User::find($id);
$user->address = "No. 1 Update grove, off The Past Street, Now Savedland.";
$user->save();

#Delete a record -- returns a boolean

$result = User::destroy($id):

#Find all users in the database - Returns object array

$users = User::getAll();
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Opeyemi Ogunjimi](https://github.com/andela-oogunjimi)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13238644?v=4)[Ogunjimi Opeyemi Abiodun](/maintainers/andela-oogunjimi)[@andela-oogunjimi](https://github.com/andela-oogunjimi)

---

Top Contributors

[![andela-oogunjimi](https://avatars.githubusercontent.com/u/13238644?v=4)](https://github.com/andela-oogunjimi "andela-oogunjimi (17 commits)")

### Embed Badge

![Health badge](/badges/opeyemiabiodun-potato-orm/health.svg)

```
[![Health](https://phpackages.com/badges/opeyemiabiodun-potato-orm/health.svg)](https://phpackages.com/packages/opeyemiabiodun-potato-orm)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.8k117.8M121](/packages/jdorn-sql-formatter)[backup-manager/backup-manager

A framework agnostic database backup manager with user-definable procedures and support for S3, Dropbox, FTP, SFTP, and more with drivers for popular frameworks.

1.7k1.6M11](/packages/backup-manager-backup-manager)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M88](/packages/propel-propel1)[insolita/yii2-migration-generator

Set of gii tools for generating files for migration by schema of table , phpdoc or table data

108508.0k5](/packages/insolita-yii2-migration-generator)[xpdo/xpdo

A PDO-based Object/Relational Bridge Library

7088.4k4](/packages/xpdo-xpdo)[voku/session2db

A PHP library acting as a wrapper for PHP's default session handling functions which stores data in a MySQL database, providing both better performance and better security and protection against session fixation and session hijacking.

3220.0k](/packages/voku-session2db)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
