Skip to content

Conversation

JasonTheAdams
Copy link
Member

The PER Coding Style is the successor and extension of PSR-12. As such, we should be encouraging folks to use that standard. Some IDEs support it, and the AI agents will know what to do with it. Unfortunately, PHPCS doesn't yet support it. The good news is that if someone is using PER then PHPCS will not flag anything as incorrect, as it simply doesn't cover the areas that PER does, but PER covers everything PSR-12 did.

I didn't want to get full into this in the doc, but wanted to at least mention and address that PER is the intended standard.

@JasonTheAdams JasonTheAdams self-assigned this Jul 13, 2025
@JasonTheAdams JasonTheAdams requested a review from felixarntz July 13, 2025 16:05
Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JasonTheAdams Thanks! LGTM, only I'd suggest keeping a link to PSR-12 for easy referencing.

@felixarntz felixarntz added the [Type] Developer Documentation Documentation for developers label Jul 13, 2025
Co-authored-by: Felix Arntz <[email protected]>
@JasonTheAdams JasonTheAdams merged commit 9a463ba into trunk Jul 14, 2025
@JasonTheAdams JasonTheAdams deleted the contributing-per-standard branch July 14, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Developer Documentation Documentation for developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants