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. Getting Started With Craft CMS

      Getting Started With Craft CMS

      Tutorial Beginner

      Now that you know a bit more about upstart WordPress competitor Craft, learn how to install it and build a site with it. We'll also explore its new...

    2. Create a Custom API in Magento: Part One

      Create a Custom API in Magento: Part One

      Tutorial Advanced

      In this two-part series, we're going to look at the Magento APIs. Specifically we'll create custom APIs and expose them. In this first part, we'll create a...

    3. Create a Custom Payment Method Module in Magento: Part One

      Create a Custom Payment Method Module in Magento: Part One

      Tutorial Intermediate

      Being a successful e­-commerce framework, Magento provides lots of payment methods in the core itself. However, you can also create a custom payment method...

    4. How to Program With Yii2: AuthClient Integration With Twitter & Google

      How to Program With Yii2: AuthClient Integration With Twitter & Google

      Tutorial Intermediate

      Yii2's built in AuthClient support makes it easy to integrate identity authentication with popular sites, services and social networks such as Facebook,...

    5. Introduction to Craft CMS

      Introduction to Craft CMS

      Tutorial Beginner

      For developers who want more control and performance than WordPress offers, Craft CMS offers a compelling solution.

    6. Magento Pre-Launch Checklist

      Magento Pre-Launch Checklist

      Tutorial Beginner

      Making a Magento website live is not child’s play. If you are a Magento developer you know that this a daunting task for even a seasoned developer. It's the...

    7. The Tuts+ Guide to Template Tags: Second Batch

      The Tuts+ Guide to Template Tags: Second Batch

      Tutorial Beginner

      In this third part of the series, we're going to go through the second batch of the almost 200 template tags.

    8. How to Program With Yii2: Rich Text Input With Redactor

      How to Program With Yii2: Rich Text Input With Redactor

      Tutorial Intermediate

      The Yii community purchased a license to Imperavi's Redactor, a fast, clean and extendable rich text editor for the web. Learn how to integrate Redactor into...

    9. Styling Sections in a Page-Based Site Differently

      Styling Sections in a Page-Based Site Differently

      Tutorial Beginner

      Learn how to create sections in a site based on a hierarchical page structure or page categories with different styling for each section.

    10. Use a Custom Post Type for Your Sidebar Content

      Use a Custom Post Type for Your Sidebar Content

      Tutorial Intermediate

      Using a custom post type to add sidebar content to your site can make things easier for users than relying on widgets. Here's how to do it.

    11. Building a Product CSV Export Tool in OpenCart

      Building a Product CSV Export Tool in OpenCart

      Tutorial Intermediate

      If you're running an online store or any web business and you don't know the importance of CSV (Comma-Separated-Value), then it's time to upgrade your...

    12. How to Program With Yii2: Working With Asset Bundles

      How to Program With Yii2: Working With Asset Bundles

      Tutorial Intermediate

      Yii2 Asset Bundles make it easier to manage and optimize when and where we use JavaScript and CSS within our web applications. Learn to use Asset Bundles in...