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

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

By Josh Lockhart
Free
Book Description

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.

Table of Contents
  • Table of Contents
  • 1. Getting Started
  • 2. Code Style Guide
  • 3. Language Highlights
  • 4. Dependency Management
  • 5. Coding Practices
  • 6. Dependency Injection
  • 7. Databases
  • 8. Templating
  • 9. Errors and Exceptions
  • 10. Security
  • 11. Testing
  • 12. Servers and Deployment
  • 13. Virtualization
  • 14. Caching
  • 15. Documenting your Code
  • 16. Resources
  • 17. Community
    No review for this book yet, be the first to review.
      No comment for this book yet, be the first to comment
      You May Also Like
      Also Available On
      Categories
      Curated Lists