Weave Code
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

doctrine/coding-standard

Doctrine Coding Standard provides a shared PHP_CodeSniffer ruleset used across Doctrine projects. Based heavily on Slevomat, it helps enforce consistent formatting, naming, and best practices in PHP codebases via an easy-to-install package.

View on GitHub
Deep Wiki
Context7
14.0.0

Release Notes for 14.0.0

Backwards incompatible release (major)

14.0.0

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

Dependencies

13.0.1

Release Notes for 13.0.1

13.0.x bugfix release (patch)

13.0.1

13.0.0

Release Notes for 13.0.0

Backwards incompatible release (major)

13.0.0

BC break,Improvement,New sniff

12.0.0

Release Notes for 12.0.0

Backwards incompatible release (major)

12.0.0

  • Total issues resolved: 0
  • Total pull requests resolved: 4
  • Total contributors: 2

New rule

Dependencies

Improvement

11.1.0

Release Notes for 11.1.0

Feature release (minor)

11.1.0

  • Total issues resolved: 0
  • Total pull requests resolved: 2
  • Total contributors: 2

Improvements

11.0.0

Release Notes for 11.0.0

Backwards incompatible release (major)

11.0.0

BC break,CI,New rule

BC break,Improvement

BC break,Improvement,New rule

9.0.2

This release is the same as 9.0.0, in order to "cancel" 9.0.1, which had many breaking changes.

9.0.1

Release Notes for 9.0.1

9.0.x bugfix release (patch)

9.0.1

9.0.0

Release Notes for 9.0.0

9.0.0

8.2.1

Release Notes for 8.2.1

8.2.x bugfix release (patch)

8.2.1

documentation

6.0.1

Release Notes for 6.0.1

Dependencies

8.1.0

Release 8.1.0

8.1.0

8.0.0

Release 8.0.0

This new major version includes rules that make this repository of standards fully compatible with PSR-12 and additional rules for PHP 7.4.

8.0.0

  • Total issues resolved: 0
  • Total pull requests resolved: 21
  • Total contributors: 6

Improvement

New rule

PSR-12

CI

Dependencies,Improvement

CI,Improvement

7.0.2

Release 7.0.2

7.0.2

  • Total issues resolved: 0
  • Total pull requests resolved: 2
  • Total contributors: 2

bug

bug,duplicate

7.0.1

Release 7.0.1

7.0.1

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

bug

6.0.0

Build Status

This new major release brings in some new default rules:

  • disallowed Abstract, Trait, Exception, Interface prefixes along with suffixes
  • forbid multiple lines between declared functions
  • disallow /** class Foo */ for class Foo comments (some editors add it by default, and it is not useful)
  • disallow PHPStorm/IntelliJ default file header including author name
  • forbid duplicate variable assignments, such as $foo = $foo = bar()
  • enforce spacing between the type declaration and the variadic declaration of a function parameter: function (int $foo)
  • forbid late static binding for constants: $foo::BAR is now a violation
  • require an empty line before a return statement when not directly within a flow control construct
  • intersection and generic types support, thanks to Slevomat CS 5

Total issues resolved: 19

5.0.1

Build Status

In this version we address the issue regarding formatting associative arrays and upgraded composer installer dependency.

  • Total issues resolved: 0
  • Total pull requests resolved: 3
  • Total contributors: 3

Bug

Improvement

5.0.0

5.0.0

Build Status

  • Total pull requests resolved: 37
  • Total contributors: 5

New sniff

Documentation

Improvement

3.0.1

Build Status

Total issues resolved: 1

3.0.0

This release introduces a few new additional checks that are enabled by default:

  • Use the "Null Coalesce" (??) operator where applicable
  • Enforce usage of parentheses together with the new statement
  • Enforce early return where applicable
  • Forbid usage of core function aliases

Total issues resolved: 7

2.1.0

This release adds sniffs to import global functions and constants.

Total issues resolved: 3

Improvement

2.0.0

Version 2.0.0 incorporates many new sniffs for code safety, predictable behavior and consistent code look, Most notably:

  • no more useless annotations that i.e. duplicate Git information,
  • space after not operator (!),
  • short arrays only,
  • no assignments in conditions,
  • alphabetically sorted uses,
  • no long type names (int vs. integer),
  • and more.

We're also moving towards PHP 7.1/7.2 standards and strict code. As part of this, we're now including checks for:

  • declare(strict_types=1) in every file,
  • native scalar types where possible,
  • scalar hints in parameter and return types,
  • defining the contents of iterable types in phpDoc,
  • no redundant phpDoc annotations when types are expressed natively,

Changelog:

  • Total issues resolved: 0
  • Total pull requests resolved: 4
  • Total contributors: 2

Improvement

1.0.0

This release makes this project compatible with PHPCS v3.0 and implements some missing sniffs (also making sure that we can apply automatic fixes with PHPCBF).

Total issues resolved: 1

0.1.0

First development release.

This is an intermediate release aimed at people relying on PHP_CodeSniffer 1.*. It is required in order for us to transition to PHP_CodeSniffer 2.* support.

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport