PHPackages                             bingo-soft/mybatis - 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. bingo-soft/mybatis

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

bingo-soft/mybatis
==================

The MyBatis SQL mapper framework ported to PHP

1.4.6(2y ago)1585↑900%21MITPHPPHP ^8.1

Since Aug 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/bingo-soft/mybatis)[ Packagist](https://packagist.org/packages/bingo-soft/mybatis)[ Docs](https://github.com/bingo-soft/mybatis)[ RSS](/packages/bingo-soft-mybatis/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (25)Used By (1)

[![Latest Stable Version](https://camo.githubusercontent.com/6b6c3c6a99ed82540af45f1a70aca1fb4a1e9a0b292f4ad866d5bc556426692f/68747470733a2f2f706f7365722e707567782e6f72672f62696e676f2d736f66742f6d7962617469732f762f737461626c652e706e67)](https://packagist.org/packages/bingo-soft/mybatis)[![Minimum PHP Version](https://camo.githubusercontent.com/183804d09fec16ca7b6209b007250b7d8db1b915042feb093a9f20e6e1f25359/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e312d3838393242462e737667)](https://php.net/)[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/61e04cbd6bf16a32d02b589937c9c073c703f8ff8754b8edfa0a74c2f26b1f6a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62696e676f2d736f66742f6d7962617469732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/bingo-soft/mybatis/?branch=main)

About
=====

[](#about)

MyBatis SQL Mapper Framework ported to PHP

Installation
============

[](#installation)

Install MyBatis for PHP, using Composer:

```
composer require bingo-soft/mybatis

```

Prerequisites for running tests
===============================

[](#prerequisites-for-running-tests)

At current stage MyBatis is tested against Postgresql and MySQL databases. To run the tests you need to create these databases first:

```
- aname
- arrayresulttype
- automapping
- blog
- ibtest
- includes
- ognl_enum
- ognlstatic
- unmapped

```

By default tests are configured to run against MySQL database. So, if you need to test it on Postgresql, please, change all configurations files.

Running tests
=============

[](#running-tests)

```
./vendor/bin/phpunit ./tests

```

Acknowledgements
----------------

[](#acknowledgements)

This library is a port of Java [MyBatis](https://github.com/mybatis/mybatis-3).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 86.1% 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 ~21 days

Recently: every ~34 days

Total

24

Last Release

867d ago

PHP version history (2 changes)1.0.0PHP ^7.4 || ^8.0

1.1.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/72e4d0dc8a6479742cdd0f141255b6f130df96cf2a1e3640349b9c737138697a?d=identicon)[bingo-soft](/maintainers/bingo-soft)

---

Top Contributors

[![vicvolk](https://avatars.githubusercontent.com/u/7192415?v=4)](https://github.com/vicvolk "vicvolk (31 commits)")[![bingo-soft](https://avatars.githubusercontent.com/u/48438172?v=4)](https://github.com/bingo-soft "bingo-soft (5 commits)")

---

Tags

phpsqlmapper

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bingo-soft-mybatis/health.svg)

```
[![Health](https://phpackages.com/badges/bingo-soft-mybatis/health.svg)](https://phpackages.com/packages/bingo-soft-mybatis)
```

###  Alternatives

[clouddueling/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k22.9k](/packages/clouddueling-mysqldump-php)[atlas/cli

Command-line interface for Atlas.

14124.6k10](/packages/atlas-cli)[friedolinfoerder/wp-activerecord

An ActiveRecord implementation for WordPress

237.2k](/packages/friedolinfoerder-wp-activerecord)

PHPackages © 2026

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