PHPackages                             m1nor/php-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. m1nor/php-orm

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

m1nor/php-orm
=============

08PHP

Since Mar 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/m1nor/php-orm)[ Packagist](https://packagist.org/packages/m1nor/php-orm)[ RSS](/packages/m1nor-php-orm/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

RsORM
=====

[](#rsorm)

[![Build Status](https://camo.githubusercontent.com/a2d8a8665afdc25a9cc825e77260c9b2bef851cf006727814c752736bed8700b/68747470733a2f2f7472617669732d63692e6f72672f726f69737461742f7068702d6f726d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/roistat/php-orm)

Overview
--------

[](#overview)

It is simple ORM library for PHP. This library is compatible with PHP 5.4 and higher. There are no magic methods. All code is type-hinted. It could be used in high load projects even with partitioning and sharding. There are 3 basic parts (packages). You could combine them or use some of them separately.

- State package — responsible for object state management. Prepares data for usage in DB queries.
- Query package — query builder. It could use data from State package or any other sources.
- Driver package — sends queries to database and parses results.

Quick Start
-----------

[](#quick-start)

Typically you can combine these 3 packages or use them alone. And at first you should define class of entity you work with. This class structure convenient to build accordingly with DB table structure.

```
class Account extends State\Entity {
	public $id;
	public $email;
	public $password;
}
```

Then you can build MySQL query. For example, select statement.

```
$statement = Query\Engine\MySQL\Builder::select()
	->table("accounts")
    ->build();
```

And then you can execute this statement and get result (array of defined class objects).

```
$mysql = new Driver\MySQL();
$accounts = $mysql->fetchAllClass($statement, "Account");
/*
$accounts - array of Account objects, like this:
[
	{id: 1, email: "qwe@qwe.qwe", password: "123456"},
	{id: 2, email: "asd@asd.asd", password: "654321"},
	...
]
*/
```

It is simple example of usage RsORM. More detailed information you can find in the relevant sections.

Documentation
-------------

[](#documentation)

[**State package**](docs/state.md)
[**Query package**](docs/query.md)
[**Driver package**](docs/driver-mysql.md)

License
-------

[](#license)

Released under the MIT License.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 59.8% 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/1577160?v=4)[Sergey Rudachenko](/maintainers/m1nor)[@m1nor](https://github.com/m1nor)

---

Top Contributors

[![slyshkin](https://avatars.githubusercontent.com/u/19598461?v=4)](https://github.com/slyshkin "slyshkin (155 commits)")[![flrnull](https://avatars.githubusercontent.com/u/1926460?v=4)](https://github.com/flrnull "flrnull (101 commits)")[![m1nor](https://avatars.githubusercontent.com/u/1577160?v=4)](https://github.com/m1nor "m1nor (2 commits)")[![Farengier](https://avatars.githubusercontent.com/u/8510580?v=4)](https://github.com/Farengier "Farengier (1 commits)")

### Embed Badge

![Health badge](/badges/m1nor-php-orm/health.svg)

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M117](/packages/jdorn-sql-formatter)[propel/propel1

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

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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