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. Create a Custom Theme With OpenCart: Part Four

      Create a Custom Theme With OpenCart: Part Four

      Tutorial Beginner

      In the previous articles in this series, we divided the templates provided by the OpenCart into three different categories in order to understand the role of...

    2. How to Build Rate Limiting into Your Web App Login

      How to Build Rate Limiting into Your Web App Login

      Tutorial Intermediate

      Apple's failure to rate limit iCloud logins likely contributed to celebrity photo hacking. Here's how to protect your own apps.

    3. Custom Layouts and Templates With Magento

      Custom Layouts and Templates With Magento

      Tutorial Beginner

      In the first part of this series, we learned the basics of Magento module development including the Magento directory structure, custom module structure and...

    4. Refactoring Legacy Code - Part 10: Dissecting Long Methods with Extractions

      Refactoring Legacy Code - Part 10: Dissecting Long Methods with Extractions

      Tutorial Intermediate

      Today, we will take another approach: We will assume we are alone, no colleague or pair to help us. We will use a technique called "Extract till you drop"...

    5. Create a Custom Theme With OpenCart: Part Three

      Create a Custom Theme With OpenCart: Part Three

      Tutorial Beginner

      In the previous part of this series, we learned how to create a custom theme and enable it from the back-end of OpenCart. We also studied how the template...

    6. New Course: Getting Started With Laravel 4

      New Course: Getting Started With Laravel 4

      Tutorial Beginner

      If you're ready to begin learning Laravel, this course will cover all the basics to get you ready to go. And you can get started straight away with a free 14...

    7. From Beginner to Advanced in OpenCart: Module Development

      From Beginner to Advanced in OpenCart: Module Development

      Tutorial Intermediate

      In the previous articles, we examined the MVC architecture and created our first controller, model, and view in the OpenCart application. We did this in...

    8. Create a Custom Theme With OpenCart: Part Two

      Create a Custom Theme With OpenCart: Part Two

      Tutorial Beginner

      In the first article of this series, we explored the basic theme structure of OpenCart. Now, let's move one step further and learn how to can create a custom...

    9. Understanding PhpSpec

      Understanding PhpSpec

      Tutorial Advanced

      If you compare PhpSpec to other testing frameworks, you will find that it is a very sophisticated and opinionated tool. One of the reasons for this, is that...

    10. Create a Custom Theme With OpenCart: Introduction

      Create a Custom Theme With OpenCart: Introduction

      Tutorial Beginner

      In this series, we will go through the development of custom theme in the OpenCart e-commerce framework. We will closely look at the theme structure of the...

    11. OpenCart Marketing Tools: Banners

      OpenCart Marketing Tools: Banners

      Tutorial Beginner

      Within an OpenCart web shop, banners can be displayed in many forms. They can be displayed as a static image, a carousel, or a slideshow. Each banner may...

    12. Introduction to the Yii Framework

      Introduction to the Yii Framework

      Tutorial Beginner

      Yii is the most powerful PHP framework you've never heard of. Here's what you've been missing out on.