PHPackages                             readdle/fqorm - 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. readdle/fqorm

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

readdle/fqorm
=============

Simple ORM

0.2.0(4y ago)036MITPHPPHP &gt;=7.4

Since Nov 23Pushed 4y ago4 watchersCompare

[ Source](https://github.com/readdle/fqorm)[ Packagist](https://packagist.org/packages/readdle/fqorm)[ RSS](/packages/readdle-fqorm/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

FQORM
=====

[](#fqorm)

Very simple ORM layer, based on the Data Mapper pattern.

Some key design principles:

- There are two types of classes: Mapper and Entity
- Entities contain data; they have properties, may have formatting methods, validation, etc.
- Mapper can read and write Entities from the database
- There are two abstract classes AbstractMapper and AbstractMapperId that can be used to create you own Mappers quickly.
- You can create any methods for Mapper, but typically we use `save`, `delete`, `findByID`, `findByWhere`, etc.

### Not a rules

[](#not-a-rules)

These are not rules, but things are very simple when it happens this way:

- Each Entity has its own Mapper
- Each Mapper maps Entity to one specific database table
- Entity has a structure similar to specific database table

If you do things differently, existing abstract classes won't help you.

### How to create Entity and Mapper

[](#how-to-create-entity-and-mapper)

See [ExampleIdEntity.php](./tests/ExampleIdEntity.php)and [ExampleIdMapper.php](./tests/ExampleIdMapper.php).

- Entities just have some properties
- Mappers extend `AbstractMapper` or `AbstractMapperID` and override methods `mapperTableName`, `mapperEntityClass`
- In another override method `createFieldMapping` you have to describe mapping for all fields
- For `AbstractMapper` subclasses you have to describe unique (key) fields in `createFieldMappingUnique`. Class `AbstractMapperID` already does this for `id`.
- Implement a save, delete, find... methods annotated with your specific Entity types. You may use existing untyped\* methods of parent classes.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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 ~166 days

Total

2

Last Release

1462d ago

PHP version history (2 changes)0.1.0PHP &gt;=8.0

0.2.0PHP &gt;=7.4

### Community

Maintainers

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

---

Top Contributors

[![AndrianBdn](https://avatars.githubusercontent.com/u/994900?v=4)](https://github.com/AndrianBdn "AndrianBdn (11 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/readdle-fqorm/health.svg)

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

###  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.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M543](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M209](/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)
