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 8y agoCompare

[ Source](https://github.com/senhungwong/php-orm)[ Packagist](https://packagist.org/packages/senhung/orm)[ RSS](/packages/senhung-orm/feed)WikiDiscussions master Synced 2w 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 36% 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

2967d ago

Major Versions

v0.1.0 → v1.0.02018-05-16

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34116371?v=4)[senhung](/maintainers/senhung)[@senhung](https://github.com/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

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

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

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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