PSR-2 — Coding Style Guide

Shared by
Published
Genre
Developer Tools

External source

php-fig.org External website

You are viewing the Vahuk Story page. The link above opens the shared source website.

This guide extends and expands on PSR-1, the basic coding standard.

The intent of this guide is to reduce cognitive friction when scanning code from different authors. It does so by enumerating a shared set of rules and expectations about how to format PHP code.

The style rules herein are derived from commonalities among the various member projects. When various authors collaborate across multiple projects, it helps to have one set of guidelines to be used among all those projects. Thus, the benefit of this guide is not in the rules themselves, but in the sharing of those rules.

Community reactions

Karma 24.3

1 reactions

Start the discussion

Discussion

0 comments

No comments yet. Be the first to join the discussion.

Leave a Reply

Your email will not be published.