mirror of
https://github.com/archtechx/template.git
synced 2025-12-10 20:54:03 +00:00
Laravel package template
| .github/workflows | ||
| src | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .php-cs-fixer.php | ||
| check | ||
| composer.json | ||
| docker-compose.yml | ||
| LICENSE | ||
| phpstan.neon | ||
| phpunit.xml | ||
| README.md | ||
REPLACE
Simple and flexible package template. Supports Laravel 11.
Template usage
- Replace all occurances of
REPLACE(case sensitive) with the name of the package namespace. E.g. theFooinArchTech\Foo.- Also do this for file names, e.g.
REPLACEServiceProvider.php.
- Also do this for file names, e.g.
- Replace all occurances of
replacewith 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 remove it from the.github/ci.ymlfile.- If SQLite is wanted, change
DB_CONNECTIONinphpunit.xmltosqlite, andDB_DATABASEto:memory:.
- If SQLite is wanted, change
Installation
composer require archtechx/replace
Usage
// ...
Development
Run all checks locally:
./check
Code style will be automatically fixed by php-cs-fixer.