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. Diagnose WordPress Performance Problems With New Relic

      Diagnose WordPress Performance Problems With New Relic

      Tutorial Intermediate

      Understanding what makes WordPress fast or slow requires a broad understanding of web infrastructure, and New Relic makes finding problems within your...

    2. Frequently Used Functions in Magento Development

      Frequently Used Functions in Magento Development

      Tutorial Beginner

      In this article I've compiled a brief list of PHP and XML functions which are most frequently used in Magento development. I have also tried to briefly...

    3. Building Your Startup With PHP:  Geolocation and Google Places

      Building Your Startup With PHP: Geolocation and Google Places

      Tutorial Intermediate

      Before you can schedule meetings with the Meeting Planner application, we need to build support for adding nearby places with the simplicity of geolocation...

    4. Build Your Own URL Shortener With YOURLS

      Build Your Own URL Shortener With YOURLS

      Tutorial Intermediate

      Don't write your own! Here's how to install and manage your own URL shortener with open source, PHP-based YOURLS.

    5. How to Program With Yii2: Exploring MVC, Forms and Layouts

      How to Program With Yii2: Exploring MVC, Forms and Layouts

      Tutorial Intermediate

      Now that you've built "Hello World," it's time to learn about Yii's implementation of Model View Controller architecture for use in everyday web development.

    6. How to Set Up Configurable Products Using Options in OpenCart

      How to Set Up Configurable Products Using Options in OpenCart

      Tutorial Intermediate

      One of the many useful features provided by OpenCart is "Options". In this tutorial, you'll learn how to use Options to set up different variations of the...

    7. Create a Custom Payment Method in OpenCart: Part 3

      Create a Custom Payment Method in OpenCart: Part 3

      Tutorial Intermediate

      In this series, you're learning how to set up a custom payment method in OpenCart. In the previous article, we created the back-end module for the custom...

    8. Creating Your Own Widgets Using Various WordPress APIs: Introduction

      Creating Your Own Widgets Using Various WordPress APIs: Introduction

      Tutorial Intermediate

      Widgets are a neat way of giving site owners some control over the look (and sometimes functionality) of their WordPress sites. In this series, we are going...

    9. Building With the Twitter API: Repeating Tweets From a Group

      Building With the Twitter API: Repeating Tweets From a Group

      Tutorial Intermediate

      Recurring tweets are more useful if you can vary the content. Learn how to build a feature that repeats tweets from a group of pre-written posts.

    10. Building Your Startup With PHP: Feature Requirements and Database Design

      Building Your Startup With PHP: Feature Requirements and Database Design

      Tutorial Intermediate

      Scope out your application features and design a database schema to support it. Use Yii scaffolding to build out most of your CRUD code.

    11. Create a Custom Payment Method in OpenCart: Part 2

      Create a Custom Payment Method in OpenCart: Part 2

      Tutorial Intermediate

      In this series, we're discussing the payment methods available for OpenCart. In the first part of the series, we studied the built-in payment methods. We...

    12. How to Use Filters in OpenCart

      How to Use Filters in OpenCart

      Tutorial Beginner

      In this tutorial, we're going to learn how to use the filters in OpenCart. OpenCart provides the "filter" module in the core itself. It's a really useful...