Build a simple laravel development environment with docker-compose. Compatible with Windows(WSL2), macOS(M1) and Linux.
- Click Use this template
- Git clone & change directory
- Execute the following command
$ make create-project # Install the latest Laravel project
$ make install-recommend-packages # Optional
name: PHP Coding Standards Fixer
on:
pull_request:
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: composer:v2, php-cs-fixer, cs2pr
- name: Install dependency composer
run: composer install
- name: Run phpcs
run: ./vendor/bin/phpcs -q --standard=PSR12 --colors --encoding=utf-8 -n -p app/
- name: Run PHPStan
run: ./vendor/bin/phpstan analyse
- name: PHP CS Fixer Run
run: php-cs-fixer fix --diff -vvv --dry-run app/
- name: Run Psalm
run: ./vendor/bin/psalm --output-format=github
โโโ app
โโโ web
โโโ db
- Base image
- nginx:1.20
- Base image