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

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

basteyy/medoo-orm
=================

An ORM Mapper for using Medoo as an Object-ORM Tool

0.0.3(2y ago)028[1 issues](https://github.com/basteyy/medoo-orm/issues)CC-BY-NC-SA-4.0PHP

Since Oct 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/basteyy/medoo-orm)[ Packagist](https://packagist.org/packages/basteyy/medoo-orm)[ Docs](https://github.com/basteyy/medoo-orm)[ RSS](/packages/basteyy-medoo-orm/feed)WikiDiscussions master Synced today

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

Medoo ORM Mapper
================

[](#medoo-orm-mapper)

Hi! This is (my personal) Medoo ORM Mapping-Class for mapping the database based on Medoo into classes.

[![CC BY-SA 4.0](https://camo.githubusercontent.com/8d232c8c7a4ea26550fd2328ff320aac76010c9d55879a66d97024d2f12b70e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d434325323042592d2d5341253230342e302d6c69676874677265792e737667)](http://creativecommons.org/licenses/by-sa/4.0/)

Setup
-----

[](#setup)

Use composer to add the Mapper to your code:

```
composer require basteyy/medoo-orm
```

Config
------

[](#config)

There are a few ways to config this.

### Create the Medoo-Instance by yourself

[](#create-the-medoo-instance-by-yourself)

You can create the medoo instance somewhere in your code and than load the tables by passing it:

```
$config = []; // Config
$medoo = new \Medoo\Medoo($config);
$usersTable = new UsersTable($medoo);
```

### Use Dependency Injection

[](#use-dependency-injection)

Create a definition somewhere in your code and simple call the tables:

```
$DI->addDefinitions([
    \Medoo\Medoo::class => function () {
        $config = []; // Config
        return new \Medoo\Medoo($config);
    },
    // OR (!!)
    'connection' =>  => function () {
        $config = []; // Config
        return new \Medoo\Medoo($config);
    },
    // OR (!!)
    'DB' =>  => function () {
        $config = []; // Config
        return new \Medoo\Medoo($config);
    },
    // OR (!!)
    'DatabaseConnection' =>  => function () {
        $config = []; // Config
        return new \Medoo\Medoo($config);
    }
]);
```

### Passing the config as a array

[](#passing-the-config-as-a-array)

You can simple pass the config as an array to the tables and let the script doing the instance-job:

```
$config = []; // The Config
$usersTable = new FancyTableClassTable($config);
```

License
-------

[](#license)

This work is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/).

[![CC BY-SA 4.0](https://camo.githubusercontent.com/fbc1a3af8fe9601ae9fa2da508f08bf846d69630717a649ff5ca7aec93989881/68747470733a2f2f6c6963656e7365627574746f6e732e6e65742f6c2f62792d73612f342e302f38387833312e706e67)](http://creativecommons.org/licenses/by-sa/4.0/)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

3

Last Release

906d ago

### Community

Maintainers

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

---

Top Contributors

[![basteyy](https://avatars.githubusercontent.com/u/2758879?v=4)](https://github.com/basteyy "basteyy (33 commits)")

---

Tags

phpormmedoo

### Embed Badge

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

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

###  Alternatives

[wayofdev/laravel-cycle-orm-adapter

🔥 A Laravel adapter for CycleORM, providing seamless integration of the Cycle DataMapper ORM for advanced database handling and object mapping in PHP applications.

3516.7k3](/packages/wayofdev-laravel-cycle-orm-adapter)[modul-is/orm

Lightweight hybrid ORM/Explorer

1118.1k](/packages/modul-is-orm)[perplorm/perpl

Perpl is an improved and still maintained fork of Propel2, an open-source Object-Relational Mapping (ORM) for PHP.

203.7k](/packages/perplorm-perpl)

PHPackages © 2026

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