mirror of
https://github.com/archtechx/template.git
synced 2025-12-12 05:14:04 +00:00
784 B
784 B
REPLACE
Simple and flexible package template.
Usage
- Replace all occurances of
REPLACE(case sensitive) with the name of the package namespace. E.g. theFooinArchTech\Foo. - Replace all occurances of
replace2with the name of the package on composer, e.g. thebarinarchtechx/bar. - If MySQL is not needed, remove
docker-compose.yml, remove the line that runs docker from./check, and setDB_CONNECTIONinphpunit.xmltosqlite, andDB_DATABASEto:memory:.
Installation
composer require stancl/replace2
Usage
// ...
Development
Running all checks locally:
./check
Running tests:
MYSQL_PORT=3307 docker-compose up -d
phpunit
Code style will be automatically fixed by php-cs-fixer.