bingo-soft/mybatis

The MyBatis SQL mapper framework ported to PHP

1.4.6 2023-12-25 06:39 UTC

This package is auto-updated.

Last update: 2024-12-25 08:40:13 UTC


README

Latest Stable Version Minimum PHP Version License: MIT Scrutinizer Code Quality

About

MyBatis SQL Mapper Framework ported to PHP

Installation

Install MyBatis for PHP, using Composer:

composer require bingo-soft/mybatis

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

./vendor/bin/phpunit ./tests

Acknowledgements

This library is a port of Java MyBatis.