PHP: The Right Way

Your guide to PHP best practices, coding standards, and authoritative tutorials

by Phil Sturgeon, Josh Lockhart

DescriptionTable of ContentsDetailsHashtagsReport an issue

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. This book 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.

This open book is licensed under a Creative Commons License (CC BY-NC-SA). You can download PHP: The Right Way ebook for free in PDF format (1.0 MB).

Table of Contents

Chapter 1
Getting Started
 
Chapter 2
Code Style Guide
 
Chapter 3
Language Highlights
 
Chapter 4
Dependency Management
 
Chapter 5
Coding Practices
 
Chapter 6
Dependency Injection
 
Chapter 7
Databases
 
Chapter 8
Templating
 
Chapter 9
Errors and Exceptions
 
Chapter 10
Security
 
Chapter 11
Testing
 
Chapter 12
Servers and Deployment
 
Chapter 13
Virtualization
 
Chapter 14
Caching
 
Chapter 15
Documenting your Code
 
Chapter 16
Resources
 
Chapter 17
Community
 

Book Details

Subject
Computer Science
Publisher
Leanpub
Published
2016
Pages
76
Edition
1
Language
English
PDF Size
1.0 MB
License
CC BY-NC-SA

Related Books

Protecting the Rights of People with Autism in the Fields of Education and Employment
Fundamental rights for all people with disabilities, education and employment are key for the inclusion of people with autism. They play as facilitators for the social inclusion of persons with autism and as multipliers for their enjoyment of other fundamental rights. After outlining the international and European dimensions of the legal protection...
Contribute to Opensource
Have you ever wondered how the open source world exists thanks to the contribution of thousands of people all over the world? Is there a way to learn the skills to contribute at maximum, or to improve it? Open Source is a trending topic every year in the IT world but nobody talks about how to be part of it, instead only to be a consumer. Join...
The Social Metabolism of Spanish Agriculture, 1900–2008
This book provides a panoramic view of the evolution of Spanish agriculture from 1900 to the present, offering a more diverse picture to the complex and multidimensional reality of agrarian production. With a clear transdisciplinary ambition, the book applies an original and innovative theoretical and methodological tool, termed Agrarian Social Met...
App Modernization on Azure Succinctly
What's the right way to move existing applications to the cloud to better use its power while enabling new features? In App Modernization on Azure Succinctly, Lorenzo Barbieri will help you understand how to modernize existing apps without completely rewriting them. This ebook will guide you through moving your app to the cloud, refactoring, rearch...
National Constitutions in European and Global Governance: Democracy, Rights, the Rule of Law
This two-volume book, published open access, brings together leading scholars of constitutional law from twenty-nine European countries to revisit the role of national constitutions at a time when decision-making has increasingly shifted to the European and transnational level. It offers important insights into three areas. First, it explores how c...
Laravel Collections Unraveled
In "Laravel Collections Unraveled" we are going to see just what is so amazing about this class by digging down under the hood to understand the full range of functions availalble, and create practical examples of each of them that we can use right away. In the process, we're going to perhaps improve our basic PHP skills a bit by getting ...