About the course:
Our PHP training course is designed to get you up to speed developing data-driven web applications using PHP and MySQL from scratch, through useful and relevant hands-on exercises which reflect real-world scenarios.
This course focuses on PHP language and syntax, working with dynamic data from and to MySQL.
PHP is a mature scripting language that you can find in use on many major commercial web sites - platforms such as Wordpress and Magento.
There are numerous associated frameworks and platforms designed to speed up the process of developing and deploying PHP web apps, such as Laravel and Zend
By the end of this course, you will have learnt:
- PHP Language and Syntax Fundamentals
- Setting up your development environment
- How to serve up PHP pages
- Regular expressions and text handling
- Database connecitivity
- PHP Flow Control
- Introduction to Object Oriented Programming in PHP
- Error Handling & Debugging
Who should attend
Web Developers and Programmers who want to be able to hand-code data-driven web applications using PHP 5.x.
Prerequisites
Experience of writing markup such as HTML and/or XML, and ideally some experience of programming in a scripting language such as JavaScript. Object-Oriented Programming experience would be useful but is not mandatory.
On-site
If you would like to discuss custom / on-site PHP training for any size of team, please get in touch – we would be glad to help build a course that meets your learning requirements.
We can take into account your existing technical skills, project requirements and timeframes, and specific topics of interest to tailor the most relevant and focussed course for you.
This can be particularly useful if you need to learn just the new features and PHP programming Best Practices, or need to include extra topics to help with pre-requisite skills.
Introduction to PHP
- PHP Architecture and what you can do with it
- Getting ready to to develop
- Hands-on installing PHP, Nginx & MySQL using Vagrant
- The built in PHP test web server
- Popular code editors
PHP Language and Syntax fundamentals
- Language conventions
- Variables & Data Types
- Constants
- Standards: The PSRs
Data-driven functionality
- Superglobals
- HTTP Request / Response cycle
- Forms and User Input
- Control Structures
- If, Else, If-Else
- While, Do-while
- For
- Creating Functions
- Using Parameters
- Closures
"Hello World" in PHP
Built-in functions
- Strings & Strings Manipulations
- Arrays
- Iterating
- Array Indexing
- Array Content
Introduction to Object Oriented programming in PHP
- Reusability of code
- Overview of Objects & Classes
- Namespaces
- Encapsulation
- Inheritance
- Autoloading
- Closures in an OO context
Connecting to Databases
- Data Source Names (DSN)
- PHP Data Objects (PDO)
- SQL querying with PDO
- Sanitizing data and binding parameters
- Displaying the results
- Exiting gracefully
PHP Exception Handling
- Creating a custom exception handler
- Terminating Statements
- Reporting
Sessions, Cookies and Authentication
- Authenticating against a database
- Password hashing and security
- Working with sessions
- Persisting authentication with Cookies
Components and Packages
- Introduction to Composer
- Importing packages from Packagist
- Composer autoloading
Development best practices & approaches
- MVC
- Security
- Dependency Injection
- HTTP abstraction
- Templating
Working with web services
- Encoding and decoding JSON
- Making HTTP requests
- AJAX