PHPackages                             verem/persitencemanager - 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. verem/persitencemanager

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

verem/persitencemanager
=======================

A simple orm for lightweight applications

15PHP

Since Aug 19Pushed 9y ago1 watchersCompare

[ Source](https://github.com/andela-vdugeri/PersistenceManager)[ Packagist](https://packagist.org/packages/verem/persitencemanager)[ RSS](/packages/verem-persitencemanager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/e084c8b32c0cfc2b72f57e0e5c07fe9b7a88190392a46b0930b15ed5a767c3f1/68747470733a2f2f7472617669732d63692e6f72672f616e64656c612d766475676572692f50657273697374656e63654d616e616765722e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/andela-vdugeri/PersistenceManager)

\#Persistence Manager Persistence Manager 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 on bash to execute the tests

```
/vendor/bin/phpunit
```

\#Install

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

```
composer require verem/persitencemanager
```

\#usage

- When creating a model, PersistenceManager maps the name of the table to the Model name, replacing any camel cases with underscores and replaces it with the plural form of the word.

    ```
      UserRole maps to table user_roles
    ```
- Save a record to database

```
$user = new User();
$user->username = "john";
$user->password = "password";
$user->email = "john@doe.co";
$user->save();
```

- Find a record from the database

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

- Update a record

```
$user = User::find($id);
$user->password = "s†røngerPaSswoRd";
$user->save();
```

- Delete a record -- returns a boolean

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

- Find a record based on column value - Returns an object

```
$user = User::where('username', 'john');
``````

- Find all users in the database - Returns object array
````````php
$users = User::all();

```

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)

PersistenceManager is maintained by `Verem Dugeri`.

License
-------

[](#license)

Persistence Manager is released under the MIT Licence. See the bundled [LICENSE](LICENSE.md) file for more details.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/b6528a0428b3997b7010a27ceec6eaecdb40b5e3a6fce5a63080b4799b9b02a3?d=identicon)[danverem](/maintainers/danverem)

### Embed Badge

![Health badge](/badges/verem-persitencemanager/health.svg)

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

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