---
title: "Discussion on \"Differences between PHP PSR-12 and PSR-2\" | Hashnode"
description: "Discussion on \"Differences between PHP PSR-12 and PSR-2\". Overview\nThe PSR-12 coding standard replaces the previous PSR-2 standard. It takes new PHP features into account.\nPSR-12 additionally takes the following constructs into account, compared to PSR-2:\n\nTraits\n\nTypes (for class properties and method para..."
url: "https://hashnode.com/posts/php-differences-between-psr-12-and-psr-2/608c3389dc886b43180043ea"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Differences between PHP PSR-12 and PSR-2](https://thoeny.dev/php-differences-between-psr-12-and-psr-2?utm_source=hashnode&utm_medium=feed)

Overview The PSR-12 coding standard replaces the previous PSR-2 standard. It takes new PHP features into account. PSR-12 additionally takes the following constructs into account, compared to PSR-2: Traits Types (for class properties and method para...

Jan 10, 2021 · 9 min read · thoeny.dev  
Read the article

-   [#php](https://hashnode.com/tag/php)

## Written by

[Orlando Thöny](https://hashnode.com/@orlandothoeny)

@orlandothoeny · Zürich, Switzerland

  
[View profile](https://hashnode.com/@orlandothoeny)

Software Developer & DevOps Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
