codeguy/php-the-right-way — explained in plain English
Analysis updated 2026-06-24
Read accepted PHP best practices and coding standards as a beginner or intermediate developer at phptherightway.com
Contribute a new section or correction to the guide by forking the repo, editing Markdown, and opening a pull request
Start a community translation of the guide into a new language by following the fork instructions in the repository
Run the site locally with Jekyll to preview changes before submitting a pull request
| codeguy/php-the-right-way | fgnass/spin.js | spring-projects/spring-petclinic | |
|---|---|---|---|
| Stars | 9,253 | 9,266 | 9,212 |
| Language | CSS | CSS | CSS |
| Setup difficulty | easy | easy | easy |
| Complexity | 1/5 | 1/5 | 2/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
This repository holds the source code for the PHP: The Right Way website, a reference guide aimed at helping PHP developers follow accepted best practices and coding standards. The actual reading experience lives at phptherightway.com, but all the content and the site structure that produces it are managed here. The site is built with Jekyll, which turns a collection of plain text and Markdown files into a static website. The guide itself is organized as a series of sections and sub-sections, each stored as a separate Markdown file in the project's posts directory. The navigation and page layout are generated automatically from those files, so contributors can add or edit content without touching the site's HTML structure. The guide exists because the PHP community has historically suffered from a shortage of credible, well-organized learning resources, especially for people new to the language. It was started by Josh Lockhart, who is also the author of the Slim Framework, a lightweight PHP web framework. The project has since grown with contributions from collaborators and the broader community. One of the more notable aspects of the project is the number of translations that have been produced. The guide is available in more than twenty languages, including Spanish, French, German, Japanese, Chinese, Arabic, Korean, Russian, and others. Each translation is maintained as a separate fork on GitHub and linked from the main site. The instructions for contributing a new translation are included in the repository. Contributors can improve the guide by forking the repository, making changes to the Markdown files, and submitting a pull request. The content follows a style guide requiring American English in the primary version, consistent indentation, line length limits, and code samples that meet PHP's PSR-1 standard. The project is released under a Creative Commons Attribution-NonCommercial-ShareAlike license.
The source for PHP: The Right Way, a community reference guide to PHP best practices and coding standards available in 20-plus languages at phptherightway.com, built with Jekyll from Markdown files.
Mainly CSS. The stack also includes Jekyll, Markdown, CSS.
Free to share and adapt for non-commercial purposes only, with attribution, and you must release derivatives under the same license.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.