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

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

senhung/orm
===========

A simple object relational mapping for databases.

v1.0.0(8y ago)05MITPHPPHP &gt;=7.1.0

Since May 12Pushed 7y agoCompare

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

READMEChangelogDependencies (2)Versions (3)Used By (0)

PHP MySQL ORM
=============

[](#php-mysql-orm)

Description
-----------

[](#description)

This is a simple object relational mapping for MySQL written in PHP7. It tries to imitate the ORM, [Eloquent](https://laravel.com/docs/5.6/eloquent), used by Laravel.

Package namespace: `Senhung\ORM`

Setup
-----

[](#setup)

1. Install

```
$ composer require senhung/orm
```

2. Config

Create a `.env` file and fill out the settings using the template [.env.example](.env.example)

Documents
---------

[](#documents)

[Model](docs/mapping/model.md)

Example
-------

[](#example)

See example in [example.php](example.php)

```
$ php example.php
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~3 days

Total

2

Last Release

2920d ago

Major Versions

v0.1.0 → v1.0.02018-05-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/fc04639b6ed1229d2f50aede524dd0ab5f8d5571fe8c1a4caa8f645d812d9341?d=identicon)[senhung](/maintainers/senhung)

---

Top Contributors

[![5u4](https://avatars.githubusercontent.com/u/29410295?v=4)](https://github.com/5u4 "5u4 (32 commits)")

---

Tags

mysqlormphpunfinished

### Embed Badge

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

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

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