Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Coding Standard Laravel Package

woohoolabs/coding-standard

Woohoo Labs PHP Coding Standard for PHP_CodeSniffer, based on PSR-12 and inspired by Doctrine and Slevomat rules. Install via Composer and drop in the provided phpcs.xml to start enforcing consistent code style (PHP 7.4+).

View on GitHub
Deep Wiki
Context7
2.4.0

CHANGED:

  • Use slevomat/coding-standard v8
  • Updated dependencies
2.3.0

CHANGED:

  • Allow to install slevomat/coding-standard v7

REMOVED:

  • SlevomatCodingStandard.Classes.UnusedPrivateElements rule
2.2.0

ADDED:

  • Support for PHP 8.0

CHANGED:

  • Increased minimum version requirement of slevomat/coding-standard to v6
2.1.1

FIXED:

  • SlevomatCodingStandard.Namespaces.UseSpacing.IncorrectLinesCountBetweenDifferentTypeOfUse was configured in a way which prevented PSR-12 conformance
2.1.0

CHANGED:

  • Require PHP CodeSniffer 3.5.0 at least

FIXED:

  • SlevomatCodingStandard.TypeHints.DeclareStrictTypes was configured in a way which prevented PSR-12 conformance

REMOVED:

  • SlevomatCodingStandard.TypeHints.DeclareStrictTypes became unnecessary
2.0.1

REMOVED:

  • Check to forbid usage of conditions when a simple return can be used
  • Check to require types to be written as natively if possible
  • Check to force rules for function phpDoc
2.0.0

ADDED:

  • Check to forbid duplicate class names
  • Check to forbid inline HTML in PHP code
  • Check to forbid alias functions
  • Check to forbid Late Static Binding of constants
  • Check to forbid dead code
  • Check to specific order of phpDoc annotations with empty newline between groups
  • Check to forbid useless comments
  • Check to require comments with single line written as one-liners
  • Check to forbid assignments in conditions
  • Check to require consistent spacing for control structures
  • Check to forbid usage of conditions when a simple return can be used
  • Check to forbid usage of boolean-only ternary operator usage
  • Check to forbid useless unreachable catch blocks
  • Check to require closures not referencing $this be static
  • Check to require newlines around namespace declaration
  • Check to require only one namespace declaration in a file
  • Check to forbid useless alias for classes, constants and functions
  • Check to require no spacing after spread operator
  • Check to forbid argument unpacking for functions specialized by PHP VM
  • Check to forbid useless semicolon
  • Check to require types to be written as natively if possible
  • Check to forbid useless @var for constants
  • Check to forbid duplicated variables assignments
  • Check to forbid useless variables
  • Check to force rules for function phpDoc
  • Check to forbid global functions
  • Check to forbid functions inside functions
  • Check to forbid superfluous whitespaces

CHANGED:

  • Increased minimum PHP version requirement to 7.4
1.1.2

REMOVED:

  • Check for early exit
1.1.1

FIXED:

  • DisallowEqualOperatorsSniff was moved to another namespace
1.1.0

ADDED:

  • Check for spread operator spacing
  • Check for useless else/elseif conditions
1.0.0
  • Initial release
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
cgv/localized-resource