logo

PHP Course

course overview

Click to View dates & book now

Overview

This five-day advanced-level course is designed to follow on from the “Web Development Fundamentals - PHP” course to introduce the idea of PHP MVC frameworks and RESTful services.

The course is designed to be framework-agnostic and takes you through:

  • Examining how to create Views to display data
  • Creating Controllers to control what data is displayed
  • Constructing and using Models that with an SQL database to supply data
  • Security of data
  • The use of PHPUnit for unit and test-driven development.

The final part of the course discusses how this technology stack can be used to create a RESTful service to supply data to remote request points. The course is delivered through a series of workshops based around agile-style user stories and a collaborative project which threads through the 5 days.

Target

Audience

This course is appropriate for anyone who has a reasonable amount of web development experience, including some PHP exposure and is looking to extend their skills into full-stack PHP development and/or PHP as part of a backend service. It may be of particular interest to those looking for a grounding in PHP-MVC before learning a framework like Zend or Laravel.

Skills Gained

At the end of this course you will be able to:

  • Create and use PHP Views, Controllers and Models
  • Creating and querying an SQL database using PHP
  • Create and authenticate sessions in PHP
  • Use PHPUnit to perform unit tests and test-driven development
  • Use PHP to deliver endpoint data as a RESTful

Prerequisites

  • Delegates MUST have HTML and CSS skills equivalent to those provided by the Web Development Fundamentals – HTML and CSS course.
  • Delegates MUST have PHP skills equivalent to those provided by the Web Development Fundamentals – PHP course.
  • Delegates would benefit from having some experience in JavaScript and skills equivalent to those provided by Web Development Fundamentals – JavaScript are recommended

Outline

Workshop 1 – Creating Views

Creating VIEWs using PHP for a web application:

  • Using a design principle called Model-View-Controller (MVC)
  • Using some of the ideas presented by Agile software development methodology
  • Through mixing PHP and HTML code
Workshop 2 – HTML Forms and Security

Creating secure forms for a user to submit:

  • Using a HTML elements and HTTPS requests
  • Using techniques to validate and sanitise the data
Workshop 3 – Objects, Models and Databases

Using PHP and SQL to interact with a database safely:

  • Using appropriate Object Oriented PHP
  • Using safe querying techniques
  • Using security measures to use passwords securely
Workshop 4 - Controllers

Routing users to the correct page depending on session data

Workshop 5 – Sessions and Authentication

Managing cookies and sessions to help with the security of PHP applications

Workshop 6 - Testing using PHPUnit

Use PHPUnit to test code including:

  • Setting up PHPUnit to run unit tests
  • Writing some simple tests in PHPUnit
  • Testing objects in PHPUnit
  • Testing databases in PHPUnit with DBUnit
Workshop 7 – Building a RESTful service in PHP

Understanding what RESTful and Micro services are, including:

  • Understanding how other applications consume these services
  • Creating a RESTful service using PHP

Talk to an expert

Thinking about Onsite?

If you need training for 3 or more people, you should ask us about onsite training. Putting aside the obvious location benefit, content can be customised to better meet your business objectives and more can be covered than in a public classroom. Its a cost effective option. One on one training can be delivered too, at reasonable rates.

Submit an enquiry from any page on this site, and let us know you are interested in the requirements box, or simply mention it when we contact you.

All $ prices are in USD unless it’s a NZ or AU date

SPVC = Self Paced Virtual Class

LVC = Live Virtual Class

Please Note: All courses are availaible as Live Virtual Classes

Trusted by over 1/2 million students in 15 countries

Our clients have included prestigious national organisations such as Oxford University Press, multi-national private corporations such as JP Morgan and HSBC, as well as public sector institutions such as the Department of Defence and the Department of Health.