jarivas / sql-models
A simple and light Multi Sql model factory
1.7.3
2024-04-25 15:49 UTC
Requires
- psr/log: ^3.0
Requires (Dev)
- jarivas/php-env: *
- phpmd/phpmd: ^2.13
- phpstan/phpstan: *
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: 3.*
- symfony/var-dumper: ^6.2
- vimeo/psalm: ^5.4
README
It is a tool to generate Models from differets kinds automatically, those models can CRUD by them selves, even supports relationships throught the method join
How to install
composer require jarivas/sql-models
How to use
Please check the tests code on tests/Unit
Tests
- Requires Docker
- ./vendor/bin/phpunit --testsuite Mysql
- ./vendor/bin/phpunit --testsuite Pgsql
- ./vendor/bin/phpunit --testsuite Sqlite