Skip to content
Daniel Trolezi edited this page Jul 16, 2024 · 19 revisions

Welcome to the laravel-app Wiki!

Getting Started

Follow the instructions bellow to get your application up and running.

Requirements

Setting up the Environment

  1. Build images
$ docker compose build
  1. Run the containers
$ docker compose up -d
  1. Finishing installation
$ chmod +x ./install.sh
$ ./install.sh
  1. Access the application
http://localhost

Available Commands

❇️ Commands must run inside the container.

Command Description
composer phpcs Runs PHP_CodeSniffer phpcs to enforce PSR-12
composer phpcbf Runs PHP_CodeSniffer phpcbf to fix code style errors
composer test Runs all tests
composer test:coverage Generates test coverage report
composer swagger:generate Generates OpenAPI documentation
composer rector:dry-run Rector will show you diff of files that it would change
composer rector:process Rector will make the changes

Included Packages

Name Repository Description
PHP_CodeSniffer squizlabs/php_codesniffer Tokenizes PHP files and detects violations of a defined set of coding standards
Swagger-PHP zircote/swagger-php A php swagger annotation and parsing library
Rector rectorphp/rector Instant Upgrades and Automated Refactoring of any PHP 5.3+ code