TRAINING COURSE OVERVIEW

On our PHP+MySQL training course, we will show you why it is such a popular language and how it makes learning programming very easy for the novice to expert programmer. We will also show you how object orientation, which was added to PHP 5, enables it to be used for more than just web development. Combined with MySQL, an open source database, we show how PHP can be used to develop applications for mobile and fixed devices. Not only will you look at the basics of PHP and MySQL, but we’ll also look at its framework Laravel. Using Laravel not only lets you leverage the popularity of PHP and MySQL, but develop apps quicker and faster by using built in features like Eloquent and the Blade templating engine.

AUDIENCE

Developers who wish to know how to develop commercial PHP web applications.

Introduction to PHP

Setting up the environment – Installing LAMP / WAMP / MAMP which includes PHP MySQL and Apache server for Windows, Linux, and Mac
Web servers - how they work, putting it all together
The built-in PHP testing server

Updating and deleting data

Adapting to MVC

Working with requests

The request object
Filtering parameters from requests
Mapping routes to controllers
The router
M for model
The customer model
The book model
The sales model
V for view 207
Introduction to Twig
The book view
Layouts and blocks
Paginated book list
The sales view
The error template
The login template
C for controller 215
The error controller
The login controller
The book controller
Borrowing books
The sales controller
Dependency injection
Why is dependency injection necessary?
Implementing our own dependency injector

Testing Web Applications

Types of tests
Unit tests and code coverage

Integrating PHPUnit

The phpunit.xml file
Your first test
Running test

Writing unit tests

The start and end of a test
Assertions
Expecting exceptions
Data providers