Skip to content

Navigation Menu

Sign in
Sign up

Consider changing Composer package type to "phpcodesniffer-standard" - #3

Open
rodrigoprimo wants to merge 1 commit into
webpractik:master from
rodrigoprimo:fix/composer-type
Open

Consider changing Composer package type to "phpcodesniffer-standard" #3
rodrigoprimo wants to merge 1 commit into
webpractik:master from
rodrigoprimo:fix/composer-type

Conversation

@rodrigoprimo

@rodrigoprimo rodrigoprimo commented Mar 12, 2026

Copy link
Copy Markdown

This PR suggests changing the Composer package type to enable automatic standard registration via the PHPCSStandards Composer installer plugin.

Problem/Motivation

Composer allows declaring a package's type. This package currently uses "library" as its type.

There is a Composer plugin that can install custom PHP_CodeSniffer standards: https://github.com/PHPCSStandards/composer-installer

This plugin is part of the PHPCSStandards organisation, which is the new official home of PHP_CodeSniffer.

For this installer to work, the package type needs to be set to phpcodesniffer-standard.

There are already over 470 packages that use this type. As a side benefit, using this type will allow end-users to more easily find other external PHP_CodeSniffer standards that may be interesting to them when searching on Packagist.

Proposed changes

Change the type in composer.json from "library" to "phpcodesniffer-standard".

This will in no way change the existing behavior of this package for users that do not include the Composer plugin mentioned above in their projects' composer.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /