Skip to content
GBTI

PHPCS is migrating to new ownership

PHPCS is migrating to new ownership

PHP_CodeSniffer, an essential tool in the PHP community for ensuring code quality and adherence to coding standards, is undergoing a significant transformation.

PHP_CodeSniffer is being moved from the squizlabs repository to the PHPCSStandards organization. This decision came after challenges in collaboration and maintenance of the original repository​​.

PHPCS is widely used.

Here are some noteable organizations that leverage the PHPCS technology:

  1. WordPress: Implements PHP_CodeSniffer to enforce its specific coding standards, ensuring consistency and quality across WordPress codebases​​.
  2. MediaWiki: Their manual mentions the use of PHP_CodeSniffer with a custom ruleset for MediaWiki to enforce coding standards MediaWiki Documentation​.
  3. Drupal: Drupal’s official Coder Sniffer install guide recommends installing Coder and the Drupal code sniffs globally using Composer, which includes PHP_CodeSniffer Jeff Geerling’s Guide​.
  4. Joomla: Joomla has a custom coding standard for PHP_CodeSniffer to enforce its coding standards Joomla Documentation​.
  5. Magento: Magento’s developer documentation recommends the use of PHP_CodeSniffer, mentioning that PHP_CodeSniffer 1.4.0+ includes PSR-1 and PSR-2 standards, which are followed by Magento 2 Magento Developer Documentation​.
  6. Symfony: There’s a development repository for the Symfony coding standard, which includes instructions for installing a coding standard for PHP_CodeSniffer Symfony Coding Standard Repository​.

We can imagine there will be some challenges:

  1. Repository Transfer Issues: The decline to transfer the repository from Squizlabs to PHPCSStandards due to code ownership concerns necessitated forking the repository, leading to several complications​​.
  2. Loss of Historical Data: Transitioning to a new repository means losing prior pull requests, issues, and wiki content, posing continuity challenges​​.

Funding and maintenance:

  1. Future Developments and Funding Needs: The new version 4.0 is on the horizon, with efforts to automate the release process. However, the project requires funding to continue its development and maintain a pool of maintainers​​.

Here at the GBTI syndicate we wish this project transition all success. We really liked their funding model as well. It would also be nice if big package donors could be prominently featured in the readme.md.

Final thoughts.

The migration of PHP_CodeSniffer to the PHPCSStandards organization marks a crucial phase in its lifecycle.

There are plenty of projects that will be slow to transition, but many organizations will most likely begin to transition as the PHPCSStandards group builds their community.

The continued support and collaboration from major organizations and the broader PHP community will be pivotal in navigating this change, ensuring PHP_CodeSniffer remains a cornerstone in maintaining high coding standards in the PHP ecosystem.

A creator network, powered by Git

Join the GBTI Network

The GBTI Network is a creator community. Browse, follow, and save across the network for free, no card required. Join a paid tier to take part and share in the revenue.

Network Member ($50/year): post comments across the network; full Discord access; read members-only content and comment bodies; and see the member-only Shares stream. Earn 10% for life on the paid revenue of members you invite.
Content Creator ($150/year): everything in Network Member, plus publish articles, products, and prompts; post to the member Shares stream; your creator profile and unified portfolio; and reshare and syndicate your work. Content Creators share in the revenue program.
Become a member You are reading GBTI Network's work. Joining from this page credits GBTI Network.

Written by

GBTI Network

Creative. Curative. Community. Cooperative. Published 2nd Dec 2023

View profile

Get the weekly digest

One email a week: new member articles, projects and prompts, plus the developer news worth reading. Unsubscribe in one click, any time.

We send a confirmation email first. You are not subscribed until you click the link in it. Read the privacy policy.

0 Comments

No comments yet. Be the first. Members comment from the GBTI local client, where comments are submitted as pull requests and auto-published for paid members.

Become a member

Comments are for members. Become a member to join the conversation, or if you already are.

You are signed in as a member. .

Contribution history

Related posts

Join the GBTI co-op

Saving, collecting, and following are member perks. Sign in with a free GitHub account to keep what you find, and become a member to comment, join the Discord, and unlock members-only content.