Chapter 1. Building a Foundation

In this chapter, we will cover the following topics:

  • PHP 7 installation considerations
  • Using the built-in PHP web server
  • Defining a test MySQL database
  • Installing PHPUnit
  • Implementing class autoloading
  • Hoovering a website
  • Building a deep web scanner
  • Creating a PHP 5 to PHP 7 code converter


This chapter is designed as a quick start that will get you up and running on PHP 7 so that you can start implementing the recipes right away. The underlying assumption for this book is that you already have a good knowledge of PHP and programming. Although this book will not go into detail about the actual installation of PHP, given that PHP 7 is relatively new, we will do our best to point out the quirks and gotchas you ...

Get PHP 7 Programming Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.