Learn PHP

If you want to be a web developer, you need to learn PHP. Read these free tutorials to master this powerful and popular scripting language.

Getting started with PHP

  • How to Build a Simple REST API in PHP

    How to Build a Simple REST API in PHP

    Sajal Soni
  • How to Use Sessions and Session Variables in PHP

    How to Use Sessions and Session Variables in PHP

    Sajal Soni
  • How to Upload a File in PHP (With an Example)

    How to Upload a File in PHP (With an Example)

    Sajal Soni
  • All PHP content:

    1. Create a PHP Email Script and Form

      Create a PHP Email Script and Form

      Tutorial Intermediate

      In this tutorial, you will learn how to send email in PHP after gathering data from different forms filled out by users.

    2. Comparing PHP Database Abstraction Layers and CRUD Plugins

      Comparing PHP Database Abstraction Layers and CRUD Plugins

      Tutorial Beginner

      In this article, we're going to look at different database abstraction layers for PHP. We'll also look at a couple of PHP CRUD database plugins that could...

    3. New Short Course on File Handling in PHP

      New Short Course on File Handling in PHP

      Tutorial Beginner

      If you want to learn the ins and outs of file handling for PHP, try our new course, Practice PHP and Learn: File Handling. In just under an hour of video...

    4. Practice PHP and Learn: File Handling

      Practice PHP and Learn: File Handling

      Course Beginner

      If you want to create a PHP application, chances are that you'll need to read and write files sooner or later. Whether you're reading a config file or...

    5. How to Create a WordPress Landing Page Template

      How to Create a WordPress Landing Page Template

      Tutorial Intermediate

      Learn how to create a WordPress landing page template. You'll create a theme template file for use on your site's landing pages and edit theme files to...

    6. Trigonometry, Random Numbers and More With Built-in PHP Math Functions

      Trigonometry, Random Numbers and More With Built-in PHP Math Functions

      Tutorial Beginner

      This tutorial will introduce you to the built-in math functions in PHP for doing trigonometry, exponentiation, and logarithm calculations. We'll also look at...

    7. How to Do User Authentication With the Symfony Security Component

      How to Do User Authentication With the Symfony Security Component

      Tutorial Intermediate

      In this article, you'll learn how to set up user authentication in PHP using the Symfony Security component. As well as authentication, I'll show you how to...

    8. Secure, Passwordless Authentication Using Auth0

      Secure, Passwordless Authentication Using Auth0

      Tutorial Intermediate

      In this article, you'll learn how to set up passwordless authentication using the Auth0 service. Auth0 allows you to outsource authentication features for...

    9. Parsing HTML With PHP Using DiDOM

      Parsing HTML With PHP Using DiDOM

      Tutorial Beginner

      This tutorial will teach you how to parse HTML using the DiDOM library in PHP. You will learn how to find a particular element in an HTML document and how to...

    10. Authentication and Authorization Using Auth0 in PHP

      Authentication and Authorization Using Auth0 in PHP

      Tutorial Intermediate

      In this article, we're going to explore the Auth0 service, which provides authentication and authorization as a service. Auth0 allows you to set up basic...

    11. Boost Your Website Performance With PhpFastCache

      Boost Your Website Performance With PhpFastCache

      Tutorial Beginner

      In this article, we're going to explore the PhpFastCache library, which allows you to implement caching in your PHP applications. Thus, it helps to improve...

    12. New Course: Connect to a Database With Laravel's Eloquent ORM

      New Course: Connect to a Database With Laravel's Eloquent ORM

      Tutorial Beginner

      In our new course, Connect to a Database With Laravel's Eloquent ORM, you'll learn all about Eloquent, which makes it easy to connect to relational data in a...