Welcome to Commonlounge’s PHP Class. This is a 23-part course which will teach you PHP from scratch. It’s designed to be very hands-on and will walk you through every step of the process.
You don’t need to have any previous knowledge of programming or PHP! The only prerequisite for this course is some basic knowledge of HTML.
The course is divided into five sections — set-up and installation, PHP programming basics, more involved topics (sessions, forms and OOP), PHP and databases, and final project.
The quizzes, coding exercises and projects get more involved as the course goes on. This course includes 50+ practice problems, 20+ coding exercises and a 3-part final project — which guides you through creating a Twitter clone in PHP!
In this section, we’ll guide you through installing PHP and installing a code editor (for writing PHP code).
The first few tutorials work on basic PHP concepts like strings, variables, arrays and if-statements — along with quizzes to check your understanding. Towards the end of the section, you will learn about more involved topics like functions, loops and superglobals — and also do a lot of coding exercises.
- PHP: Numbers, Strings and Functions
- Quiz: PHP Numbers, Operators and Strings
- PHP: Variables and Arrays
- Quiz: PHP Variables and Arrays
- PHP: If, Else, Elseif and Switch Statements
- Quiz: PHP Comparisons, If and Switch Statements
- PHP: Functions and Loops
- Quiz: PHP Functions and Loops
- PHP: Superglobals and Forms
In this section, you will learn how to work with multiple PHP files at the same time. You will also learn about sessions (so that you can allow users to log-in and log-out) and forms (to input user data). Finally, you will learn about Object Oriented Programming (OOP).
- PHP: Sessions, Include and Require
- PHP: Form Validation
- Quiz: PHP Sessions and Form Validation
- PHP: Object Oriented Programming
- Quiz: PHP Object Oriented Programming
These tutorials will teach you about databases, and how to interact with databases using PHP. This is the final step before you can make really cool projects and websites using PHP.
- Introduction to Databases and SQL with Examples
- Quiz: SQL and Databases
- MySQL with PHP
- Quiz: PHP Data Objects
These tutorials guide you through creating a Twitter Clone in PHP from scratch. You will be implementing all the primary features of Twitter — including signup and login flow, tweeting, home feed, profile page, and the ability to follow users!