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 tutorials:

    1. A BDD Workflow With Behat and Phpspec

      A BDD Workflow With Behat and Phpspec

      Tutorial Intermediate

      Follow along, while we walk through a real life example of how you can incorporate BDD into your daily workflow by using Behat and phpspec.

    2. Working With Databases in Symfony 2

      Working With Databases in Symfony 2

      Tutorial Beginner

      In the last video we learned how to validate and process form submissions in Symfony 2. But we didn't do anything with the submitted form data. Today, we'll...

    3. Form Validation in Symfony 2

      Form Validation in Symfony 2

      Tutorial Beginner

      Last time we created a reusable form in Symfony 2. Today, we'll build on to what we've learned, to now add form validation and form processing to our...

    4. Export and Import Products and Categories with Automatic SEO URLS in OpenCart

      Export and Import Products and Categories with Automatic SEO URLS in OpenCart

      Tutorial Intermediate

      What OpenCart lacks by default compared to other platforms such as Magento is the functionality of mass product import and export. This tutorial will show...

    5. Refactoring Legacy Code: Part 5 - Game's Testable Methods

      Refactoring Legacy Code: Part 5 - Game's Testable Methods

      Tutorial Intermediate

      Learn techniques for how to deal with complex and complicated unknown legacy code, how to understand it, and finally writing the Golden Master tests for...

    6. Working With Templates in Symfony 2

      Working With Templates in Symfony 2

      Tutorial Beginner

      Using Twig templates will help you to mix your PHP and HTML code together to provide you with dynamic, clean, readable, and maintainable view code. Let's begin!

    7. Using WordPress to Create an FAQ System With Custom Post Types

      Using WordPress to Create an FAQ System With Custom Post Types

      Tutorial Intermediate

      If you're building a website for a person or an organization and the website needs to educate its visitors with small doses of knowledge, an FAQ page is one...

    8. Refactoring Legacy Code: Part 4 - Our First Unit Tests

      Refactoring Legacy Code: Part 4 - Our First Unit Tests

      Tutorial Intermediate

      Learn techniques for how to deal with complex and complicated unknown legacy code, how to understand it, and finally writing the Golden Master tests for...

    9. Object-Oriented Programming in WordPress: Building the Plugin I

      Object-Oriented Programming in WordPress: Building the Plugin I

      Tutorial Beginner

      At this point in the series, we're finally able to begin building our first plugin using the object-oriented techniques that we've learned thus far in the...

    10. Getting Started With Phpspec

      Getting Started With Phpspec

      Tutorial Intermediate

      Join me for an introduction to using phpspec, a behavior driven development toolset that allows you to describe your application's behavior by writing...

    11. Refactoring Legacy Code: Part 3 - Complex Conditionals

      Refactoring Legacy Code: Part 3 - Complex Conditionals

      Tutorial Intermediate

      Learn techniques for how to deal with complex and complicated unknown legacy code, how to understand it, and finally updating the Golden Master tests.

    12. Object-Oriented Programming in WordPress: Scope

      Object-Oriented Programming in WordPress: Scope

      Tutorial Beginner

      In continuing our discussion of object-oriented programming in WordPress, we need to begin talking about the idea of scope. In short, this refers to the...