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. How to Use the Symfony Filesystem Component

      How to Use the Symfony Filesystem Component

      Tutorial Beginner

      In this article, we're going to explore the Symfony Filesystem component, which provides useful methods to interact with a file system. After installation...

    2. The header.php File: What Needs to Go in It and What Doesn't

      The header.php File: What Needs to Go in It and What Doesn't

      Tutorial Beginner

      In this tutorial, let's talk about the header.php, an essential file for any WordPress theme. I'll show you a nice header file example and give tips about...

    3. Best PHP Invoicing and Billing Scripts

      Best PHP Invoicing and Billing Scripts

      Tutorial Beginner

      Do you want to automate your billing and invoicing process and receive payment faster? PHP invoicing scripts will streamline your billing and invoicing...

    4. Image Resizing Made Easy With PHP

      Image Resizing Made Easy With PHP

      Tutorial Intermediate

      Ever wanted an all-purpose, easy-to-use method of resizing your images in PHP? That's what PHP classes are for—reusable pieces of functionality that we call...

    5. Adding Custom Hooks in WordPress: Custom Filters

      Adding Custom Hooks in WordPress: Custom Filters

      Tutorial Beginner

      In this two-part series, we're going to review the WordPress hook system and how it's implemented, and we're going to take a look at how to define both our...

    6. Adding Custom Hooks in WordPress: Custom Actions

      Adding Custom Hooks in WordPress: Custom Actions

      Tutorial Beginner

      In this two-part series, we're going to review the WordPress hook system and how it's implemented, and we're going to take a look at how to define both our...

    7. How to Use async in PHP

      How to Use async in PHP

      Tutorial Intermediate

      In this tutorial, I will show you how to use the async library from Spatie to run code asynchronously in PHP.

    8. Set Up Routing in PHP Applications Using the Symfony Routing Component

      Set Up Routing in PHP Applications Using the Symfony Routing Component

      Tutorial Intermediate

      Today, we'll go through the Symfony Routing component, which allows you to set up routing in your PHP applications.

    9. How to Use the Symfony Event Dispatcher for PHP

      How to Use the Symfony Event Dispatcher for PHP

      Tutorial Intermediate

      Today, we're going to learn how to use the Symfony event dispatcher component, which allows you to create events and listeners in your PHP applications....

    10. 10 Best Free Live Chat PHP Scripts

      10 Best Free Live Chat PHP Scripts

      Tutorial Beginner

      Free PHP live chat scripts come in all sizes and shapes. Some have enterprise-level features, while others have basic features that allow you to get started...

    11. 10 Best Inventory and Stock Management PHP Scripts

      10 Best Inventory and Stock Management PHP Scripts

      Tutorial Beginner

      On CodeCanyon, you will find inventory management PHP scripts that will simplify how you manage your inventory and save you the headaches that come from...

    12. How to Create Custom CLI Commands Using the Symfony Console Component

      How to Create Custom CLI Commands Using the Symfony Console Component

      Tutorial Beginner

      In this article, we're going to explore how you can create custom CLI commands in your PHP applications using the Symfony Console component. After installing...