Skip to main Content

PHP Developer

  • Course Code PHPD
  • Duration 4 days

Course Delivery

Company Event Price

Please call

Request Group Training Add to Cart

Course Delivery

This course is available in the following formats:

  • Company Event

    Event at company

  • Public Classroom

    Traditional Classroom Learning

  • Virtual Learning

    Learning that is virtual

Request this course in a different delivery format.

Course Overview

Top
PHP Developer Course Overview

PHP is a popular general purpose scripting language commonly used for building web applications.

The PHP Developer course is designed to provide delegates with all the core skills necessary to build and maintain web applications that provide access to persistent data. Note that while the course is geared toward web application development,it is also suitable for general purpose PHP developers.

Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.

Company Events

These events can be delivered exclusively for your company at our locations or yours, specifically for your delegates and your needs. The Company Events can be tailored or standard course deliveries.

Course Schedule

Top

Target Audience

Top
Who will the Course Benefit?

The PHP Developer course is aimed at those who are new to or have had little exposure to PHP,and who will be responsible for building or maintaining PHP scripts/web applications. It may also be of value to those who wish to refresh/renew their knowledge of PHP after some time away from it.

Course Objectives

Top
Course Objectives

The PHP Developer course aims to provide delegates with the skills and knowledge necessary to build and maintain simple to intermediate level PHP scripts/web applications.

Course Content

Top
PHP Developer Training Course Course Contents - DAY 1

Course Introduction

  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions

Session 1: GETTING STARTED

  • About PHP
  • Installing PHP
  • PHP editors and IDEs
  • Executing a script
  • HTML recap
  • Serving a PHP web page

Session 2: SYNTAX

  • Tags
  • HTML escaping
  • Separating instructions
  • Comments

Session 3: VARIABLES,CONSTANTS,& DATA TYPES

  • echo and print
  • Defining variables
  • Variable naming
  • Assignment by reference
  • Uninitialised variables
  • Defining constants
  • Magic constants
  • Built-in types: null,bool,int,float,string,array,object
  • Other types
  • Dynamic typing
  • Type casting and juggling

Session 4: HANDLING USER DATA

  • HTTP requests recap
  • HTML form recap
  • Command line arguments
  • Superglobals
PHP Developer Training Course Course Contents - DAY 2

Session 5: EXPRESSIONS & OPERATORS

  • Forms of expressions
  • Operators by type: arithmetic,comparison,logical,other
  • Operator order of precedence

Session 6: CONTROL STRUCTURES

  • if,else,and elseif/else if
  • while and do-while
  • for and foreach
  • break and continue
  • switch and match
  • Alternative syntax
  • include and require

Session 7: FUNCTIONS

  • Defining functions
  • Function arguments
  • Passing arguments by reference
  • Default argument values
  • Variable-length argument lists
  • Named arguments
  • Return values
  • Variable scope
  • Built-in functions
  • Anonymous functions
  • Arrow functions

Session 8: STRINGS

  • Defining strings x 4
  • Variable parsing
  • Indexing/offsetting
  • String functions and operators
PHP Developer Training Course Course Contents - DAY 3

Session 9: ARRAYS

  • Defining arrays with and without keys
  • Alternative syntax
  • Key casting
  • Accessing elements
  • Creating and modifying elements
  • Destructuring
  • Unpacking
  • Array functions

Session 10: CLASSES & OBJECTS

  • Defining classes
  • Properties and methods
  • $this
  • Constants
  • Instantiating a class
  • Accessing properties and calling methods
  • Constructors and destructors
  • Static members
  • Visibility
  • Inheritance
  • Abstract classes
  • Interfaces
  • Traits
  • Autoloading classes
  • Namespaces

Session 11: ERRORS & EXCEPTIONS

  • Errors
  • Error types
  • Handling errors
  • Exceptions
  • Exception types
  • try,catch,and finally
  • Global exception handler

Session 12: DATABASE INTEGRATION

  • Vendor-specific extensions
  • The PDO extension
  • Installation
  • Obtaining a connection
  • Transaction management
  • Prepared statements
  • Error handling
  • The PDO and associated classes
PHP Developer Training Course Course Contents - DAY 4

Session 13: AUTHENTICATION,COOKIES,& SESSIONS

  • Basic HTTP authentication
  • Writing and reading cookies
  • Managing sessions

Session 14: PATTERNS,TEMPLATING,PACKAGES,& FRAMEWORKS

  • The MVC pattern
  • The DI pattern
  • The Singleton pattern
  • Templating
  • Package management
  • PHP frameworks

Session 15: WEB SERVICE INTEGRATION

  • Web service recap
  • Asynchronous HTTP requests with JavaScript

Course Prerequisites

Top
Requirements

Delegates attending this course should have some previous programming experience or at least be familiar with programming concepts. This knowledge can be obtained by attendance on the pre-requisite Introduction to Programming course. Familiarity with HTML and SQL is advantageous but not essential.

Follow on Courses

Top
Further Learning
  • Apache Web Server
  • Introduction to MySQL
  • Ruby Programming
  • Ruby on Rails
  • Python Programming 1