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

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

andela-aonyango/potato-orm
==========================

A lightweight ORM built using PHP and PDO.

v1.0.3(10y ago)026MITPHPPHP &gt;=5.6.0

Since Feb 20Pushed 10y ago1 watchersCompare

[ Source](https://github.com/andela-aonyango/potato-orm)[ Packagist](https://packagist.org/packages/andela-aonyango/potato-orm)[ Docs](https://github.com/andela-aonyango/potato-orm)[ RSS](/packages/andela-aonyango-potato-orm/feed)WikiDiscussions master Synced 3w ago

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

### potato-orm

[](#potato-orm)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0de2870e24812bbcfdc2e3fc3aa33be0cae5e56a6ca330af9aa8b574b2af27d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e64656c612d616f6e79616e676f2f706f7461746f2d6f726d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andela-aonyango/potato-orm)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/4a6a4707c464a18773d1529bb4a308c9bf82b678b6145fa2cf3d037642c82bc4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e64656c612d616f6e79616e676f2f706f7461746f2d6f726d2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/andela-aonyango/potato-orm/build-status/master)[![Coverage Status](https://camo.githubusercontent.com/a4f578be62996dcf87f041f63d35f9d72534223945735394d53b381ae9169b7b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f616e64656c612d616f6e79616e676f2f706f7461746f2d6f726d2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/andela-aonyango/potato-orm?branch=master)[![Quality Score](https://camo.githubusercontent.com/ab3dee78374db1f98143da3a3509a3d5ed8ab56ec6d7854a0bdb9cb2db568876/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f616e64656c612d616f6e79616e676f2f706f7461746f2d6f726d2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/andela-aonyango/potato-orm)[![Total Downloads](https://camo.githubusercontent.com/d7108af5815289383ee5d4cfbd048fe02775646b2b592f4feb959011048303a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e64656c612d616f6e79616e676f2f706f7461746f2d6f726d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andela-aonyango/potato-orm)

A light-weight ORM which allows you to insert records into a database, retrieve them, update them, and delete them.

### Install

[](#install)

Via Composer

```
$ composer require andela-aonyango/potato-orm
```

In the package directory, run

```
$ composer install
```

### Usage

[](#usage)

Edit the example .env provided in the root of this package with the database settings you will use (make sure you .gitignore **YOUR** .env file). The one given uses MYSQL settings. PDO supports many [database drivers](https://secure.php.net/manual/en/pdo.drivers.php) so you can get familiar with what are valid/invalid inputs for the DSN and so on.

#### Sample Table

[](#sample-table)

```
create table Person (
    id int unsigned auto_increment primary key,
    first_name varchar(30) not null,
    last_name varchar(30) not null,
    age int(2),
    gender varchar(7)
);
```

#### Sample Usage

[](#sample-usage)

```

```

### 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)

- [andela-aonyango](https://github.com/andela-aonyango)
- [All Contributors](../../contributors)

### License

[](#license)

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

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~2 days

Total

4

Last Release

3777d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1958708?v=4)[andrizzle](/maintainers/andrizzle)[@andrizzle](https://github.com/andrizzle)

---

Top Contributors

[![andela-aonyango](https://avatars.githubusercontent.com/u/16223633?v=4)](https://github.com/andela-aonyango "andela-aonyango (41 commits)")

---

Tags

Potato-ORMandela-aonyango

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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