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
2023-08-31 16:38:16 +02:00
.github/workflows removed PHP_CS_FIXER_IGNORE_ENV 2022-07-20 19:03:08 +05:00
src Add 'replace's to the provider stub 2021-05-23 13:25:31 +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 Migrate to PHP-CS-Fixer 3.x 2021-05-24 17:24:04 +06: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 update larastan 2022-02-20 21:11:11 +01: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 Fix SQLite DB connection 2021-07-06 17:02:52 +02:00
README.md Update README.md 2022-02-20 20:22:54 +01:00

REPLACE

Simple and flexible package template. Supports Laravel 8 and 9.

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.