PHP Training
This Course Covers Version(s): PHP 7
- Live Class with Instructor
- Digital Course Manual
- Hands-on Labs
- One Year Access to Recorded Course
In this PHP training course, students will learn to create database-driven websites using PHP and MySQL or MariaDB (the drop-in replacement for MySQL.) Even if students are not using one of these two databases for their development, they will still learn applicable skills for connecting to the data source of their choice. In addition, students will learn how to use the MVC design pattern to create modern web applications, use object-oriented application principles in PHP, work with data types like strings, numbers and dates, work with files, images and upload in PHP, test and debug a PHP application, secure a PHP application using encryption, passwords and secure connections, send email with PHP and much more. This is a hands-on course where students will work on projects to build many different types of PHP applications including an eCommerce, Shopping Cart and Product Manager site among many others. This course is current to PHP version 7.
Upon successful completion of this course, students will be able to:
- Understand how PHP works
- Understand the basic syntax of PHP
- Create dynamic interactive pages with PHP
- Use object-oriented design principles in PHP
- Manipulate files with PHP
- Work with arrays in PHP
- Validate forms with PHP
- Write functions in PHP
- Manipulate and manage a database data with PHP
- Authenticate users with PHP
- Manage sessions with PHP
- Implement MVC design patterns in PHP
- Work with MySQL, MariaDB or other databases in PHP
- Understand advanced form validation with regular expressions
- Send email with PHP
Some experience with HTML and CSS is helpful to get the most out of this class. Experience with other programming languages is also helpful, but not required.
This course is designed for students with experience with HTML who wish to learn PHP.
- Introduction to PHP
- The architecture of a web application
- How to edit and test a PHP application
- How to edit a PHP page with a text editor
- How to start and stop Apache and MySQL on your own computer
- Deploying a PHP application
- How to run a PHP application
- How to test and debug a PHP page
- Working with PHP projects and files
- How to import and configure a PHP project
- Building a PHP Application
- How to embed PHP in HTML
- How to code comments and statements
- Understanding PHP data types
- Declare variables and constants
- How to get data from a request
- Using the built-in $_GET array
- Using the built-in $_POST array
- When to use the HTTP GET and POST methods
- How to work with data
- How to code string expressions
- How to code echo statements
- How to code numeric expressions
- How to use the compound assignment operators
- Using built-in functions
- How to use the filter_input() function
- Using control statements
- Using conditional expressions
- Using if statements
- How to code while and for statements
- How to pass control to another page
- How to use PHP documentation
- How to access the PHP manual
- Using PHP with a Database
- Using SQL statements for data manipulation
- How to select data from a single table
- How to select data from multiple tables
- How to insert, update, and delete data
- An introduction to MySQL
- Using phpMyAdmin
- How to import and run a SQL script that creates a database
- How to run SQL statements
- How to create users with limited privileges
- Connect to a database and handle exceptions
- How to get and modify data
- How to execute SELECT statements
- How to work with the first row of a result set
- How to work with all the rows of a result set
- How to execute INSERT, UPDATE, and DELETE statements
- How to use the MVC Pattern in a PHP Application
- An introduction to the MVC pattern
- How to code functions
- How to redirect requests
- The user interface
- The model
- The controller
- The view
- How to Test and Debug a PHP Application
- An introduction to testing and debugging
- Typical test phases for a PHP application
- Common PHP errors
- Trace the execution of your PHP code
- How to debug with Xdebug and NetBeans
- How to set and remove breakpoints
- How to step through code
- How to inspect variables
- How to inspect the stack trace
- Working with Form Data in PHP
- How to get data from a form
- Using text boxes, password boxes, and hidden fields
- Using a radio button
- Using a check box
- Using an array of check boxes
- Using a drop-down list
- Using a list box
- Using a text area
- Displaying data on a web page
- How to format special characters
- How to format line breaks
- How to display data with echo and print statements
- Using Code Control Statements in PHP
- How to code conditional expressions
- How to use the equality and identity operators
- How to use the relational operators
- How to use the logical operators
- Using if statements with else and else if clauses
- How to use the conditional and null coalesce operators
- Using switch statements
- How to use while, do-while and for loops
- How to use the break and continue statements
- Working with Strings and Numbers in PHP
- Creating strings
- Using escape sequences
- How to work with string length and substrings
- How to search a string
- Replacing part of a string
- Modifying strings
- Converting strings to and from arrays
- Converting strings to and from ASCII values
- How to compare strings
- Working with numbers
- How to use the math functions
- How to generate random numbers
- How to convert strings to numbers
- Using Dates in PHP
- Using timestamps to work with dates
- Creating and formatting timestamps
- How to work with timestamps
- How to use the strtotime() function
- How to use objects to work with dates
- How to use the DateTime class
- How to use the DateInterval class
- Using Arrays in PHP
- How to create and use an array
- How to add and delete elements in an array
- How to use for loops to work with arrays
- How to create and use an associative array
- How to use foreach loops to work with arrays
- Using functions to work with arrays
- How to fill, merge, slice, and splice arrays
- Using queues and stacks
- How to search, sort and modify arrays
- Using an array of arrays
- Using Cookies and Sessions in PHP
- How to set and get a cookie
- How to enable or disable cookies
- How to work with sessions
- How session tracking works in PHP
- How to start a session
- How to set and get session variables
- How to manage a session
- How to end a session
- How to create a shopping cart application in PHP
- Creating and Using Functions in PHP
- How to create and call a function
- How to pass arguments by value and by reference
- Understanding Variable Scope
- How to provide default values for parameters
- How to work with type declarations
- How to use variable-length parameter lists
- How to create and use a library of functions
- How to set the include path
- Understanding function scope
- How to create and use namespaces
- Using variable functions and callbacks
- Using anonymous functions
- How to work with closures
- Continuing the shopping cart application in PHP
- Creating and Using Objects in PHP
- How to create and use classes
- Using properties
- Understanding constructors and destructors
- Understanding methods
- How to create and use objects
- Using class constants, properties, and methods
- Understanding static properties and methods
- How to loop through an object’s properties
- How to clone and compare objects
- Understanding inheritance
- Using the protected access modifier
- Creating abstract classes and methods
- Creating final classes and methods
- How to work with interfaces
- Error Handling, Exceptions and Regular Expressions in PHP
- How to create and use regular expressions
- How to create complex patterns
- How to use look-ahead assertions
- How to use a multiline regular expression
- Understanding global regular expressions
- Using regular expressions for data validation
- How to create and throw exceptions
- How to catch and handle exceptions
- How to catch and handle errors
- Using PHP with MySQL
- Three ways to use PHP to work with MySQL
- PDO (PHP Data Objects)
- PHP mysqli extension
- PHP MySQL extension
- Working with PDO
- How to connect to a database
- How to select data
- How to insert, update, and delete data
- How to work with prepared statements
- How to set the error mode for PDO
- A model in PDO
- Working with mysqli
- How to connect to a database
- How to select data
- How to insert, update, and delete data
- How to work with prepared statements
- Understanding the object-oriented style vs the procedural style
- A model in mysqli
- Creating a Data-Driven Website in PHP
- How to work with large text columns
- A simple content management system
- How to add HTML tags to text
- Creating a product catalog website using PHP
- Securing a PHP Website
- How to use a secure connection
- An introduction to secure connections
- How SSL authentication works
- How to get a digital secure certificate
- How to request a secure connection
- How to redirect to a secure connection
- How to use authentication
- Understanding the three types of authentication
- How to store and validate a password
- How to use form-based authentication
- How to use basic authentication
- How to work with cryptography
- How to encrypt and decrypt data
- A class for encrypting and decrypting data
- Sending Email in PHP
- How to send email
- How to set up a test email account
- How to use PHPMailer to send an email
- A helper function for sending an email
- How to use the helper function to send an email
- Creating a registration application
- Working with Files, Uploads and Images in PHP
- How to work with files
- How to get a directory listing
- How to read and write files
- How to copy, rename, and delete a file
- HTML for uploading a file
- PHP for working with an uploaded file
- How to work with images
- How to get information about an image
- How to read and write images
- How to resize an image
- Working with transparency
- Creating an Image Upload Application
- Creating an eCommerce Website in PHP
- Prototyping and stepwise refinement
- The directory structure of the website
- The user interface for end users
- The Catalog application
- The Cart application
- The Checkout and Account applications
- The My Account page
- The user interface for administrators
- The Admin Login and Admin Menu pages
- The Product Manager application
- The Category Manager application
- The Order Manager application
- The Account Manager application
This course does not align to a specific exam or certification.
- For Private Groups as small as 2 people.
- Live, Instructor-led Online or Onsite Class for your group.
- Customizable to your needs.