PHPackages                             dara/liteorm - 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. dara/liteorm

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

dara/liteorm
============

A database management system

039PHP

Since Oct 16Pushed 10y ago2 watchersCompare

[ Source](https://github.com/andela-doladosu/liteorm)[ Packagist](https://packagist.org/packages/dara/liteorm)[ RSS](/packages/dara-liteorm/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

[![Build Status](https://camo.githubusercontent.com/7db4c40b8064f7682604dc8df9545a3bc481ca5451544e720a008b5d4d187909/68747470733a2f2f7472617669732d63692e6f72672f616e64656c612d646f6c61646f73752f706f7461746f6f726d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/andela-doladosu/potatoorm)

\#Potato ORM Potato ORM is a lightweight ORM based on concepts borrowed from the laravel framework

\#Testing The phpunit framework for testing is used to perform unit test on the classes. The TDD principle has been employed to make the application robust

Run this in your terminal to execute the tests

```
/vendor/bin/phpunit

```

\#Install

- To install this package, PHP 5.5+ and Composer are required

```
composer require dara/potato

```

\#Environment variables

In order to use this package, you need to create a `.env` file with the following details provided

```
P_DRIVER = 'mysql';
P_HOST   = 'localhost';
P_DBNAME = 'db_name';
P_USER   = 'db_username';
P_PASS   = 'db_password';

```

\#usage

- Save a new record

```
$user = new User();
$user->username = "drsumo";
$user->password = "ppkksdjs";
$user->email = "mail@mail.com";
$user->save();

```

- Find one record

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

```

- Find all records

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

```

- Update an existing record

```
$user = User::find($id);
$user->email = "newemail@mail.com";
$user->username = "rockefeller";
$user->save();

```

- Delete an existing record

```
$delete = User::destroy($id):

```

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

[](#change-log)

Please check out [CHANGELOG](CHANGELOG.md) file for information on what has changed recently.

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

[](#contributing)

Please check out [CONTRIBUTING](CONTRIBUTING.md) file for detailed contribution guidelines.

Credits
-------

[](#credits)

Potato-ORM is maintained by `Dara Oladosu`.

License
-------

[](#license)

Potato-ORM is released under the MIT Licence. See the bundled [LICENSE](LICENSE.md) file for more details.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

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/3f786839da68bd4a51f5428651e1098296ecf323908e37d717bf734b306651c2?d=identicon)[dara](/maintainers/dara)

---

Top Contributors

[![dara-tobi](https://avatars.githubusercontent.com/u/8155075?v=4)](https://github.com/dara-tobi "dara-tobi (50 commits)")

### Embed Badge

![Health badge](/badges/dara-liteorm/health.svg)

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

###  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)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

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

Reliese Components for Laravel Framework code generation.

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

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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