fabpl/laravel-preset

Opinionated coding preset for Laravel

1.0.1 2024-10-02 19:48 UTC

This package is auto-updated.

Last update: 2024-10-02 19:50:40 UTC


README

Laravel Preset is opinionated coding preset for Laravel.

Features

Requirements

Laravel Preset requires the following to run:

  • PHP 8.2+
  • Laravel v11.0+

Installation

Since these commands will overwrite existing files in your application, only run this in a new Laravel project!

Require the Laravel Preset package using Composer:

composer require fabpl/laravel-preset --dev

php preset:install

Usage

This command will be available after installing the Laravel Preset package:

# Run PHPStan
composer analyze

# Run all the tools
composer check

# Run the coverage test suite
composer coverage

# Lint the code using Pint
composer lint

# Refactor the code using Rector
composer refactor

# Run the test suite
composer test