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

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

florence/potato
===============

Potato ORM is a simple agnostic ORM that can perform the basic crud database operations

501PHP

Since Aug 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/fokosun/Checkpoint2)[ Packagist](https://packagist.org/packages/florence/potato)[ RSS](/packages/florence-potato/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

[![Build Status](https://camo.githubusercontent.com/1a0a537bdd2a170acbeb5704ef8dfab1173d4e89e040dd4dd5a9cdba98f2da6d/68747470733a2f2f7472617669732d63692e6f72672f666f6b6f73756e2f436865636b706f696e74322e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/andela-fokosun/Checkpoint2)

Potato ORM
==========

[](#potato-orm)

Potato ORM is a simple and very basic ORM that can perform the basic crud database operations.

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

[](#installation)

Require via composer:

```
    composer require florence/potato

```

Usage
-----

[](#usage)

- make sure to establish a connection to your database
- create your database tables using pluralized names e.g users, cars.
- define the table schema e.g users table schema could look like :point\_right: \[username, email, password, phone\]
- when the above is set, you can start using potatoORM

#### Example

[](#example)

- create a model

    ```
      class User extends Model
      {
          // add methods that are not available in parent class
      }

    ```
- create a new instance of the model you created

    ```
      $user = new User();

    ```
- add the respective column names and assign values

    ```
      $user->username = "johndoe";
      $user->email = "john@doe.com";
      $user->phone = "08067890986";

    ```
- save

    ```
      $user->save();

    ```
- fetch all users

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

    ```
- find one user

    ```
      $user = User::find(1);

    ```
- delete one user

    ```
      $user = User::destroy(1);

    ```
- update user record

    ```
      &user = User::find(3);
      $user->username = "Lindsay";
      $user->email = "lindsay@africa.com";
      $user->save();

    ```

Potato ORM is an open-source project and still pretty much work in progress. It does not handle table relationships as at this version and can only carry out simple crud operations. Please feel free to contribute to make this as awesome as it can get.

**Happy Coding!**

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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://www.gravatar.com/avatar/1a6cc40b038a8d47c9ce56d2f3fd2db84d4f4b606403e65c2087416663c05796?d=identicon)[florenxe](/maintainers/florenxe)

---

Top Contributors

[![fokosun](https://avatars.githubusercontent.com/u/7254731?v=4)](https://github.com/fokosun "fokosun (219 commits)")

---

Tags

cruddatabaseormphppotato-orm

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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