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

Phpcodesniffer Composer Installer Laravel Package

dealerdirect/phpcodesniffer-composer-installer

Composer installer plugin that automatically discovers and installs PHP_CodeSniffer coding standards (rulesets) from Composer packages. It configures PHPCS installed_paths for you, avoiding manual symlinks and configuration. Supports PHPCS 3/4 and Composer 2.2+.

View on GitHub
Deep Wiki
Context7
v1.2.0

Changed

  • Various housekeeping, including improvements to the documentation and tests.

Removed

  • Drop support for PHP_CodeSniffer 2.x. Thanks [@jrfnl] ! #261
v1.1.2

Changed

  • General housekeeping.

Fixed

  • #247: Potential fatal error when the Composer EventDispatcher is called programmatically from an integration. Thanks [@jrfnl] ! #248
v1.1.1

Changed

  • Various housekeeping, including improvements to the documentation.

Fixed

  • #239: The PHP_CodeSniffer package could not be always found when running the plugin in a Drupal or Magento setup. Thanks [@jrfnl] ! #245
v1.1.0

Changed

  • Various housekeeping, including improvements to the documentation and tests. Thanks [@SplotyCode], [@fredden] for contributing!

Removed

v1.0.0

Breaking changes

  • Rename namespace prefix from Dealerdirect to PHPCSStandards by [@jrfnl] in #191
  • Drop support for PHP 5.3 by [@jrfnl] in #147

Changed

  • Correct grammar in error message by [@fredden] in #189
  • .gitattributes: sync with current repo state by [@jrfnl] in #198
  • PHPCSVersions: update URL references by [@jrfnl] in #161
  • README: remove references to Scrutinizer by [@jrfnl] in #157
  • Rename references to master branch by [@Potherca] in #201
  • Update repo references by [@jrfnl] in #158
  • GH Actions: add builds against Composer 2.2 for PHP 7.2 - 8.x by [@jrfnl] in #172
  • GH Actions: bust the cache semi-regularly by [@jrfnl] in #192
  • GH Actions: fix builds on Windows with PHP 8.2 by [@jrfnl] in #180
  • GH Actions: fix up fail-fast for setup-php by [@jrfnl] in #195
  • GH Actions: run integration tests against Composer snapshot by [@jrfnl] in #163
  • GH Actions: run linting against against ubuntu-latest by [@jrfnl] in #184
  • GH Actions/Securitycheck: update the security checker download by [@jrfnl] in #178
  • GH Actions/Securitycheck: update the security checker download by [@jrfnl] in #186
  • GH Actions/Securitycheck: update the security checker download by [@jrfnl] in #190
  • GH Actions: selectively use fail-fast with setup-php by [@jrfnl] in #194
  • GH Actions: stop running tests against PHP 5.5/Composer 1.x on Windows (and remove work-arounds) by [@jrfnl] in #183
  • GH Actions: various tweaks / PHP 8.2 not allowed to fail by [@jrfnl] in #193
  • GH Actions: version update for various predefined actions by [@jrfnl] in #170
  • Update YamLint by [@Potherca] in #173
  • Add initial integration test setup and first few tests by [@jrfnl] in #153
  • BaseLineTest: stabilize the message checks by [@jrfnl] in #162
  • PlayNiceWithScriptsTest: wrap output expectation in condition by [@jrfnl] in #179
  • RegisterExternalStandardsTest: add new tests by [@jrfnl] in #165
  • RegisterExternalStandardsTest: stabilize test for Composer v1 on Windows with PHP 5.5 by [@jrfnl] in #171
  • TestCase::executeCliCommand(): retry Composer commands on a particular exception by [@jrfnl] in #164
  • Tests: add new InstalledPathsOrderTest by [@jrfnl] in #176
  • Tests: add new InstallUpdateEventsTest and NonInstallUpdateEventsTest by [@jrfnl] in #174
  • Tests: add new InvalidPackagesTest by [@jrfnl] in #168
  • Tests: add new PlayNiceWithScriptsTest by [@jrfnl] in #169
  • Tests: add new PreexistingPHPCSConfigTest by [@jrfnl] in #166
  • Tests: add new PreexistingPHPCSInstalledPathsConfigTest + bug fix by [@jrfnl] in #167
  • Tests: add new RemovePluginTest by [@jrfnl] in #177
  • Tests: add new RootPackageHandlingTest + bugfix by [@jrfnl] in #175

Fixed

v0.7.2

Changed

  • Add details regarding QA automation in CONTRIBUTING.md file. by [@Potherca] in #133
  • Add mention of Composer and PHP compatibility to project README. by [@Potherca] in #132
  • Composer: tweak PHPCS version constraint by [@jrfnl] in #152
  • CONTRIBUTING: remove duplicate code of conduct by [@jrfnl] in #148
  • Document release process by [@Potherca] in #118
  • Plugin::loadInstalledPaths(): config-show always shows all by [@jrfnl] in #154
  • README: minor tweaks by [@jrfnl] in #149
  • README: update with information about Composer >= 2.2 by [@jrfnl] in #141
  • Replace deprecated Sensiolabs security checker by [@paras-malhotra] in #130
  • Stabilize a condition by [@jrfnl] in #127
  • Update copyright year by [@jrfnl] in #138
  • Various minor tweaks by [@jrfnl] in #151
  • Change YamlLint config to prevent "truthy" warning. by [@Potherca] in #144
  • GH Actions: PHP 8.1 has been released by [@jrfnl] in #139
  • Travis: line length tweaks by [@jrfnl] in #128
  • CI: Switch to GH Actions by [@jrfnl] in #137
  • CI: various updates by [@jrfnl] in #140
v0.7.1

Closed issues

  • Order of installed_paths inconsistent between runs #125
  • Maintaining this project and Admin rights #113

Changed

Fixed

v0.7.0

Closed issues

  • Composer 2.x compatibility #108
  • Add link to Packagist on main page #110
  • Switch from Travis CI .org to .com #112

Added

Changed

  • Test with PHPCS 4.x and allow installation when using PHPCS 4.x by [@jrfnl] in #107
  • Fix case of class name by [@Seldaek] in #109
v0.6.2

Fixed

v0.6.1

Closed issues

  • Do not exit with code 1 on uninstall (--no-dev) #103

Changed

  • Readme: minor tweak now 0.6.0 has been released #102 ([@jrfnl])

Fixed

v0.6.0

Closed issues

  • Composer PHP version appears not to be respected #79
  • Allow a string value for extra.phpcodesniffer-search-depth #82
  • Add [@jrfnl] as (co)maintainer to this project #87

Added

  • Add support for a string phpcodesniffer-search-depth config value set via composer config by [@TravisCarden] in #85
  • Send an exit code when the script terminates by [@jrfnl] in #93
  • Verify the installed_paths after save by [@jrfnl] in #97

Changed

  • CS: fix compliance with PSR12 by [@jrfnl] in #88
  • Improve GH issue template by [@jrfnl] in #94
  • Readme: add section about including this plugin from an external PHPCS standard by [@jrfnl] in #95
  • Bug report template: further enhancement by [@jrfnl] in #99
  • Update copyright year. by [@Potherca] in #101
  • Adding linting jobs in github action by [@mjrider] in #96
  • GH Actions: minor tweaks: by [@jrfnl] in #100
  • Travis: disable Xdebug by [@jrfnl] in #89
  • Travis: test against PHP 7.4, not snapshot by [@jrfnl] in #90
  • Travis: use a mix of PHPCS versions in the matrix by [@jrfnl] in #91
  • Update Travis file and fix build by [@Potherca] in #86

Fixed

  • #79: Respect PHP version used by Composer and provide better feedback on failure by [@jrfnl] in #80
  • Bug fix: loadInstalledPaths() very very broken since PHPCS 3.1.0 by [@jrfnl] in #98
v0.5.0

Closed issues

  • Scan depth as parameter #45
  • phpcs: Exit Code: 127 (Command not found) on every Composer command #48
  • The composer plugin implementation seems to be breaking the composer lifecycle #49
  • Installation error #53
  • Broke composer commands when used with wp-cli/package-command #59
  • Getting a new stable release #60
  • Support PHP CodeSniffer standards in packages installed outside of the vendor directory #63

Added

  • Adds the ability to set the max depth from the composer.json file by [@Potherca] in #46

Changed

  • Build/PHPCS: update PHPCompatibility repo name by [@jrfnl] in #54
  • README: remove VersionEye badge by [@jrfnl] in #55
  • README: replace maintenance badge by [@jrfnl] in #56
  • Execute phpcs and security-checker from vendor/bin by [@gapple] in #52
  • PHPCS: various minor tweaks by [@jrfnl] in #57
  • Travis: various tweaks by [@jrfnl] in #58
  • Use PHPCompatibility 9.0.0 by [@jrfnl] in #61
  • Build/Travis: test builds against PHP 7.3 by [@jrfnl] in #62
  • Updates copyright year by [@frenck] in #67
  • Enforces PSR12 by [@frenck] in #66
  • Updates contact information by [@frenck] in #68
  • Updates README, spelling/grammar, removed Working section by [@frenck] in #69
  • Replaces ProcessBuilder by ProcessExecutor by [@frenck] in #70
  • Refactors relative path logic by [@frenck] in #71
  • Removes suggested packages by [@frenck] in #72
  • Ensures absolute paths during detection phase by [@frenck] in #73
  • Trivial code cleanup by [@frenck] in #74
  • Fixes duplicate declaration of cwd by [@frenck] in #75
  • Removes HHVM from TravisCI by [@frenck] in #76
  • Adds PHP_CodeSniffer version constraints by [@frenck] in #77

Fixed

  • #49: Move loadInstalledPaths from init to onDependenciesChangedEvent by [@gapple] in #51
v0.4.4

Closed issues

  • PHP 7.2 compatibility issue #43

Changed

v0.4.3

Changed

v0.4.2

Changed

v0.4.1

Closed issues

  • Incorrect relative paths for WPCS #33

Fixed

  • #33: Changes the way the installed_paths are set. #34 ([@frenck])
v0.4.0

Closed issues

  • Add support for code standards in root of repository for PHP_CodeSniffer 3.x #26
  • Config codings styles in composer.json from project #23
  • Check the root package for sniffs to install #20
  • Document the ability to execute the main plugin functionality directly #18
  • Add a CHANGELOG.md #17
  • Install sniffs with relative paths in CodeSniffer.conf #14

Added

  • Support for coding standard in the root repository for PHP_CodeSniffer v3.x [#30] ([@frenck])
  • Added support for having coding standards in the root package #25 ([@frenck])

Changed

  • Local projects uses relative paths to their coding standards #28 ([@frenck])
  • Docs: Updated README. #31 ([@frenck])
  • Docs: Adds reference to calling the script directly in the README. #29 ([@Potherca])
  • Adds Travis-CI configuration file. #27 ([@Potherca])
v0.3.2

Closed issues

  • Coding Standard tries itself to install with installPath when it's the root package #19

Changed

Fixed

  • [#13]: Incorrect coding standards search depth [#15] ([@frenck])
v0.3.1

Closed issues

  • Plugin not working correctly when sniffs install depth is equal to "1" #13
  • Create new stable release version to support wider use #11

Fixed

v0.3.0

Implemented enhancements

  • Install Plugin provides no feedback #7
  • Installing coding standards when executing Composer with --no-scripts #4
  • Github contribution templates #10 ([@christopher-hopper])
  • Show config actions and a result as Console output #8 ([@christopher-hopper])
  • Adds static function to call the Plugin::onDependenciesChangedEvent() method #5 ([@Potherca])

Added

Changed

v0.2.1

Fixes an issue with having this plugin installed globally within composer, but using your global composer installation on a local repository without PHP_CodeSniffer installed.

Fixed

  • Bugfix: Plugin fails when PHP_CodeSniffer is not installed #2 ([@frenck])
v0.2.0

For this version on, this installer no longer messes with the installation paths of composer libraries, but instead, it configures PHP_CodeSniffer to look into other directories for coding standards.

Changed

  • PHPCS Configuration management #1 ([@frenck])
v0.1.1

Changed

  • Standard name mapping improvements
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