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

Php Code Sniffer Standard Laravel Package

iodigital-com/php-code-sniffer-standard

Extends PHP_CodeSniffer with iO Digital coding standards. Install via Composer, add an IO ruleset to your phpcs.xml, configure excluded paths and PHP version ranges, and run vendor/bin/phpcs. Includes guidance for properly ignoring sniff violations.

View on GitHub
Deep Wiki
Context7
v29.4.0

Added

  • Add support for PHP_CodeSniffer 4

Changed

  • Update phpcompatibility/php-compatibility requirement from ^9.3 to ^10.0.0@dev
  • Update squizlabs/php_codesniffer requirement from ^3.6.0 to ^3.13.3 as required by the updated phpcompatibility/php-compatibility dependency

Fixed

  • Fix offsetAccess.notFound error ("Offset int|null might not exist") in MultipleLinesPerUse sniff reported by PHPStan 2.1.23 and higher
v29.3.0

Added

  • Add support for PHP 8.4
  • Add CaptainHook

Removed

  • Drop support for PHP 8.0

Changed

  • Add catalog-info.yaml
  • Remove .project-inventory.json
  • Update PHPUnit from 9 to 10
  • Update PHPStan from 1 to 2
v29.2.0

Changed

  • Add support for slevomat/coding-standard:^8.15, replace usages of UseStatementHelper::isAnonymousFunctionUse with UseStatementHelper::!isImportUse
v29.1.0

Added

  • Add support for PHP 8.3
  • Add support for v1 versions of the dealerdirect/phpcodesniffer-composer-installer package

Removed

  • Drop support for PHP 7.4

Fixed

  • Increase minimum version of slevomat/coding-standard dependency to 7.1 (fixes #4)
  • Remove version property from composer.json
  • Add missing PHP 8.2 service to Lando configuration
v29.0.1

Fixed

  • Change ruleset name to start with a capital
v29.0.0

Added

  • 40: Add the Generic.Formatting.SpaceAfterNot rule with spacing 0

Changed

  • Rename to IODigital namespace and iO ruleset
v9.0.0

Updated

  • Require importing global functions and constants
v8.0.0

Added

  • Sniff to require exactly one space after casting expression.

Updated

  • slevomat/coding-standard from ^4.6 to ^5.0
  • object-calisthenics/phpcs-calisthenics-rules from ^3.4 to ^3.5

Removed

  • object-calisthenics/phpcs-calisthenics-rules from dev-dependencies
v7.0.1
  • Tag new version because the v7.0.0 was placed on the develop branch instead of the master branch.
v7.0.0

Added

  • Sniff to check return type hint whitespace
  • Sniff to check for useless constant type hints
  • Sniff to check spacing around functions
  • Sniff to enforce camel caps for (member) variables
  • Sniff to check operator spacing
  • Sniff to disallow is_null()
  • Sniff to disallow blank lines at the begin and end of classes, interfaces and traits
  • Sniff to disallow whitespace on blank lines
v6.0.0

Added

  • Sniff to check for unused private elements
  • Sniff to check alphabetically sorted uses
  • Sniff to disallow long array syntax
  • Sniff for object calisthenics: maxFunctionLength of 25 lines
v5.0.0

Added

  • Sniff to detect incorrect PHP syntax
  • (focus on maintainability, readability, testability and comprehensibility):
    • number of methods per class
    • number of properties per class
    • cyclomatic complexity
    • max nesting level

Updated

  • dealerdirect/phpcodesniffer-composer-installer to 0.5.0+
v4.0.0

Added

  • Sniff to disallow empty()
  • Sniff to disallow isset()
  • Sniff to disallow null coalesce operator
  • Created the ISAAC ruleset to be included, instead of extending the phpcs.xml file
v3.0.0

Added

  • Sniff to disallow loose equal operator (=== over ==)
  • Sniff to disallow yoda comparison (if (true === something())))
  • Sniff to enforce typecasting with short notations ((int) over(integer), (bool) over (boolean), etc.)
  • Sniff to enforce strict type declaration
  • Sniff to enforce nicely indented arrays
v28.2.0

Added

  • 41 Support for PHP 8.2

Changed

  • Update ramsey/composer-install to version 2
  • 39: Change 2022 changelog entries by adding link to respective PR

Removed

  • 42 Support for PHP 7.3
v28.1.0

Added

  • 38: Add support for Slevomat Coding Standard v8
  • 37: Add allow-plugin config to composer.json
v28.0.0

Added

  • 36: Add assert() to forbidden functions
  • 35: Add exec() to forbidden functions
  • 35: Add passthru() to forbidden functions
  • 35: Add shell_exec() to forbidden functions
  • 35: Add system() to forbidden functions
  • 34: Add eval() to forbidden functions
  • 33: Add serialize() and unzerialize() to forbidden functions
v27.0.0

Added

  • 32: Add the SlevomatCodingStandard.Classes.ModernClassNameReference rule
v26.0.0

Added

  • 29: Add ISAAC.ControlStructures.DisallowGotoOperator rule
  • 28: Add the Generic.PHP.BacktickOperator rule
  • 24: Add SlevomatCodingStandard.Variables.UnusedVariable rule

Changed

  • 30: Change the Generic.PHP.ForbiddenFunctions array value into a more readable and expandable form
  • 25: Disallow all superglobals by replacing the MySource.PHP.GetRequestData rule by the more complete `SlevomatCodingStand[...]

Removed

  • 27: Remove explicit inclusion of the Squiz.WhiteSpace.SuperfluousWhitespace rule
  • 26: Remove explicit inclusion of the Generic.Files.LineEndings rule
  • 23: Remove explicit inclusion of the PSR12.Operators.OperatorSpacing rule
v25.1.0

Removed

  • Remove the Generic.CodeAnalysis.UselessOverridingMethod rule
v25.0.0

Added

  • Add GitHub Action
  • Add support for PHP 8.1

Changed

  • Upgrade PHPStan to version 1
  • Upgrade PHPUnit to version 9

Removed

  • Remove support for PHP 7.2

Fixed

  • Adhere to own coding standard and update PHP_CodeSniffer configuration to the latest standards
v24.0.0

Added

  • Add sniff to require nullable type for parameters with a default null value. SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue
v23.0.0

Added

  • Add sniff to disallow square bracket style (...[]) array type hint in favor of the angular bracket style (array<...>).
v22.0.0

Changed

  • Replace the deprecated ObjectCalisthenics.Files.FunctionLength rule by SlevomatCodingStandard.Functions.FunctionLength
  • Replace the deprecated ObjectCalisthenics.Metrics.MaxNestingLevel rule by Generic.Metrics.NestingLevel
  • Replace the deprecated ObjectCalisthenics.Metrics.PropertyPerClassLimit rule by ISAAC.Classes.PropertyPerClassLimit
  • Replace the deprecated ObjectCalisthenics.Metrics.MethodPerClassLimit rule by ISAAC.Classes.MethodPerClassLimit
  • Update slevomat/coding-standard from v6 to v7
  • Update squizlabs/php_codesniffer from v3.5 to v3.6

Fixed

  • Fix the test runner by only executing the tested sniff
  • Fix 'constant not found' PHPStan errors
  • Resolve phpcs sniff violations in test classes when running phpcs using PHP 7.4 or 8.0
  • Resolve phpcs sniff violations in BaseTestCase class
  • Add .phpunit.result.cache to the .gitignore
  • Resolve PHPUnit error when using the --filter option

Removed

  • Remove object-calisthenics/phpcs-calisthenics-rules
  • Remove explicit reference to ISAAC rules (the rules added by this packages are included automatically)
v21.0.0

Removed

  • Remove duplicate class constant visibility check (removed SlevomatCodingStandard.Classes.ClassConstantVisibility in favor of PSR12.Properties.ConstantVisibility which is part of the PSR12 ruleset)

Added

  • Add sniff to only allow linux line endings.
v20.0.0

Added

  • Add sniff to disallow spaces surrounding an object operator.
  • Add PHP 8.0 support
v2.0.0

Added

  • PHP_CodeSniffer Standards Composer Installer Plugin: The package depends on codesniffer and automatically configures its installed_paths config setting. We no longer have to overwrite that setting in order to get our ruleset to work. This enables additional rulesets to be defined on the project level without needing to think about when to set the installed_paths key.
v19.0.0

Added

  • Add LICENSE.md

Changed

  • Change license to MIT
  • Remove ISAAC company-specific instructions from README
v18.2.0

Changed

  • Update dealerdirect/phpcodesniffer-composer-installer to ^0.7
v18.1.0

Changed

  • Mark the tests directory and the .gitattributes and .gitignore files as export-ignore
v18.0.0

Added

  • Add sniff to require native property type declarations if possible.
v17.0.1

Fixed

  • Use 'conflict' instead of 'replace'. Otherwise, when switching branches after installing the new version, running composer install will not install the old version of the package again.
v17.0.0

Added

  • Add sniff to require use statements to be placed on a single line.

Changed

  • Rename 'ISAAC PHP_CodeSniffer' to 'ISAAC PHP_CodeSniffer Standard'
  • Downgrade PHPUnit from ^9.1 to ^8.5 to allow package development with PHP 7.2
v16.0.0

Added

  • Add instructions on ignoring sniff violations

Changed

  • Allow imports to exceed the line length limit
  • Disallow group use declarations
  • Update PHPUnit dev-dependency to version 9.1
v15.1.0

Changed

  • Update dealerdirect/phpcodesniffer-composer-installer to version 0.6
v15.0.1

Fixed

  • Fix typo in changelog of version 14.0.0: 'Drop support for PHP 7.2' should be 'Drop support for PHP 7.1'
  • Explicitly state the supported minor PHP-versions in composer.json
  • Fix autoload-dev (this caused problems while running the tests)
  • Configure the supported PHP versions of this package in phpcs.xml

Changed

  • Update PHPStan (dev-requirement of this package)
v15.0.0

Added

  • PHPCompatibility
  • Sniff to disallow spaces when passing variables as reference
v14.0.1

Fixed

  • Fix wrongly typed sniff names
v14.0.0

Changed

  • Update slevomat/coding-standard to version 6

Removed

  • Drop support for PHP 7.1
v13.0.2

Added

  • Include PHPStan

Fixed

  • Code now adheres own codestyle
v13.0.1
v13.0.0

Added

  • Sniff to disallow multiple statement alignment
v12.0.0

Added

  • PSR-12 ruleset

Removed

  • PSR-2 ruleset
v11.0.0

Added

  • Sniff to require trailing commas in multi-line arrays
  • Sniff to require a closure to be static when it does not use $this
v10.0.0

Added

  • Sniff to disallow use of double quotes when it is not required
v1.0.1

Added

  • Add changelog
v1.0.0

Initial commit

Fixed
  • Fix code to adhere to the coding standard
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.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor