PHP Developer

Course Code: PHPD

Duration: 4 days

 
 
 
 

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.

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.

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.

Skills Gained

The delegate will learn and acquire skills as follows:

  • Install PHP, execute code and serve web pages
  • Describe PHP syntax
  • Manage data in memory
  • Handle user data
  • Build expressions
  • Control program flow
  • Declare and call functions
  • Define and manipulate strings
  • Define and manipulate arrays
  • Organise code into classes and use objects
  • Handle errors and exceptions
  • Read from and write to a database
  • Authenticate users and manage cookies and sessions
  • Describe relevant patterns and templating, and manage packages
  • Manage web service integration

PHP Developer Training Course

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

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

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

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
Notes:
  • Course technical content is subject to change without notice.
  • Course content is structured as sessions, this does not strictly map to course timings. Concepts, content and practicals often span sessions.

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.

Pre-Requisite Courses

Public Scheduled Events

Classroom & Live Virtual Instructor-Led Training

Duration: 4 days

Price: £1,695.00 exc. VAT 


Start Date Options Spaces  
25 Jun 2024
StayAhead Virtual Courses available 
Spaces Book Now 
27 Aug 2024
StayAhead Virtual Courses available 
Spaces Book Now 
05 Nov 2024
StayAhead Virtual Courses available 
Spaces Book Now 
28 Jan 2025
StayAhead Virtual Courses available 
Spaces Book Now 
08 Apr 2025
StayAhead Virtual Courses available 
Spaces Book Now 
 

Live Virtual Classroom

 
Join live instructor-led classroom training from the comfort of your home or office.
All the convenience and benefits of the classroom experience without the hassle and costs of travel and accommodation.
 
 



Our Customers Include

 
EDF
Amazon
American Express
Aviva
QA
BAE
University of Cambridge
Barnardo's
Scottish Government
Bauer
Bloomberg
BP
HSBC
DVLA
GlaxoSmithKline
Government Campus
Capita
Tui
NHS
Ordnance Survey
Ministry of Defence
Zurich Insurance Group
trainline
Vodafone
 
 



Our Course Curriculum

 
 
 
+44 (0)20 7600 6116
Enquiries@StayAhead.com
Copyright © 2024 StayAhead Training Ltd
Cookies   /   Privacy Policy