bingo-soft / mybatis
The MyBatis SQL mapper framework ported to PHP
Installs: 488
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Type:project
Requires
- php: ^8.1
- bingo-soft/heap: *
- bingo-soft/juel: *
- bingo-soft/sax: *
- bingo-soft/util: *
- doctrine/dbal: ^3.7
Requires (Dev)
README
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.