PHP: The ”Right” Way - Your guide to PHP best practices, coding standards, and authoritative tutorials.

PHP: The ”Right” Way - Your guide to PHP best practices, coding standards, and authoritative tutorials.

36 Ungluers have Faved this Work
There’s a lot of outdated information on the Web that leads new PHP users astray, propagating bad practices and insecure code. PHP: The Right Way is an easy-to-read, quick reference for PHP popular coding standards, links to authoritative tutorials around the Web and what the contributors consider to be best practices at the present time.

There is no canonical way to use PHP. The website aims to introduce new PHP developers to some topics which they may not discover until it is too late, and aims to give seasoned pros some fresh ideas on those topics they’ve been doing for years without ever reconsidering. This ebook will also not tell you which tools to use, but instead offer suggestions for multiple options, when possible explaining the differences in approach and use-case.

It is a living document and will continue to be updated with more helpful information and examples as they become available.

This book is on sale at Leanpub. 100% of the authors' royalties are going directly to the Electronic Frontier Foundation.

Why read this book? Have your say.

(March 7, 2015, 8:44 a.m.)
If you tried "send to kindle" on this book, it didn't work because kindle choked on the curly quotes in the title. We have modified the system to work around this, and you can now send this book to kindle.

You must be logged in to comment.

Rights Information

Are you the author or publisher of this work? If so, you can claim it as yours by registering as an rights holder.


This work has been downloaded 1650 times via ebook links.
  1. 551 - mobi (CC BY-NC-SA) at Internet Archive.
  2. 516 - epub (CC BY-NC-SA) at Internet Archive.
  3. 583 - pdf (CC BY-NC-SA) at Internet Archive.


  • Computer programming
  • Nonfiction
  • Open source software
  • PHP (Computer program language)
  • Programming languages




edition cover


Copy/paste this into your site: