1
0
Fork 0
mirror of https://github.com/archtechx/template.git synced 2025-12-12 05:14:04 +00:00
Laravel package template
Find a file
2021-05-24 17:52:14 +02:00
.github/workflows Migrate to PHP-CS-Fixer 3.x 2021-05-24 17:24:04 +06:00
src Add 'replace's to the provider stub 2021-05-23 13:25:31 +02:00
tests Initial commit 2021-05-23 13:13:38 +02:00
.gitattributes Initial commit 2021-05-23 13:13:38 +02:00
.gitignore Migrate to PHP-CS-Fixer 3.x 2021-05-24 17:24:04 +06:00
.php-cs-fixer.php php cs fixer 3 2021-05-24 17:52:14 +02:00
check php-cs-fixer 3 2021-05-24 17:05:05 +02:00
composer.json Remove psalm dependency 2021-05-24 11:04:52 +02:00
docker-compose.yml Initial commit 2021-05-23 13:13:38 +02:00
LICENSE Create LICENSE 2021-05-23 13:16:10 +02:00
phpstan.neon Initial commit 2021-05-23 13:13:38 +02:00
phpunit.xml Initial commit 2021-05-23 13:13:38 +02:00
README.md Update README.md 2021-05-23 14:45:41 +02:00

REPLACE

Simple and flexible package template.

Usage

  • Replace all occurances of REPLACE (case sensitive) with the name of the package namespace. E.g. the Foo in ArchTech\Foo.
    • Also do this for file names, e.g. REPLACEServiceProvider.php.
  • Replace all occurances of replace with the name of the package on composer, e.g. the bar in archtechx/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.yml file.
    • If SQLite is wanted, change DB_CONNECTION in phpunit.xml to sqlite, and DB_DATABASE to :memory:.

Installation

composer require archtechx/replace

Usage

// ...

Development

Run all checks locally:

./check

Code style will be automatically fixed by php-cs-fixer.