Download the PHP package vladyslavstartsev/laravel-strict-coding-standard without Composer
On this page you can find all versions of the php package vladyslavstartsev/laravel-strict-coding-standard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vladyslavstartsev/laravel-strict-coding-standard
More information about vladyslavstartsev/laravel-strict-coding-standard
Files in vladyslavstartsev/laravel-strict-coding-standard
Package laravel-strict-coding-standard
Short Description PHP_CodeSniffer rules for Laravel to force the "right" design of the app
License MIT
Homepage https://github.com/vladyslavstartsev/laravel-strict-coding-standard
Informations about the package laravel-strict-coding-standard
Laravel strict coding standard
PHP_CodeSniffer coding standards for Laravel, do force developers not to use bad design decisions that are supported by Laravel
Installing
Sniffs included in this standard
LaravelStrictCodingStandard.Laravel.DisallowUseOfGlobalFunctions
-
checks for functions that are declared in
vendor/laravel/framework/src/Illuminate/Foundation/helpers.php
vendor/laravel/framework/src/Illuminate/Support/helpers.php
LaravelStrictCodingStandard.Laravel.DisallowUseOfFacades
- checks for usage of Laravel Facades (including Real-time facades)
- if not configured it will use default path for
Illuminate\Foundation\Application
instance atbootstrap/app.php
so for default Illuminate\Foundation\Application
instance use
to override, do this
we need this instance, so we can get all Facades and Aliases that are potentially used in the app ( yes, this looks like dynamic code analysis, but that's the only way how to find out all Facades, if you have ideas how to do it statically, feel free to make PR)
All versions of laravel-strict-coding-standard with dependencies
laravel/framework Version ^7.30 || ^8.40.0 || ^9 || ^10
slevomat/coding-standard Version ^7.0
squizlabs/php_codesniffer Version ^3.6.0