1
0
Fork 0
mirror of https://github.com/archtechx/template.git synced 2025-12-10 20:54:03 +00:00
Laravel package template
Find a file
2024-04-24 18:21:04 +02:00
.github/workflows improve ci.yml 2024-04-24 18:21:04 +02:00
src code style 2024-04-24 18:11:56 +02:00
tests Add pest() helper 2022-07-22 23:28:56 +02:00
.gitattributes Initial commit 2021-05-23 13:13:38 +02:00
.gitignore upgrade to Laravel 11 2024-04-24 18:11:15 +02:00
.php-cs-fixer.php 'single_line_empty_body' => true 2023-08-31 16:38:16 +02:00
check php-cs-fixer 3 2021-05-24 17:05:05 +02:00
composer.json upgrade to Laravel 11 2024-04-24 18:11:15 +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 upgrade to Laravel 11 2024-04-24 18:11:15 +02:00
README.md upgrade to Laravel 11 2024-04-24 18:11:15 +02:00

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. 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.