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. 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...

    2. 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.

    3. 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.

    4. 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...

    5. 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...

    6. Create a Custom Payment Method in OpenCart: Part 1

      Create a Custom Payment Method in OpenCart: Part 1

      Tutorial Intermediate

      Accepting online payments is an essential feature in any eCommerce website. In this series, we're going to explore the payment methods available for...

    7. Building Your Startup With PHP: Getting Started

      Building Your Startup With PHP: Getting Started

      Tutorial Beginner

      Learn how to turn your entrepreneurial business concept into an actual startup by following the instructor's own product development process.

    8. Building Your Startup With PHP: Table of Contents

      Building Your Startup With PHP: Table of Contents

      Tutorial Beginner

      A guide to our ongoing series on launching your own business and product with PHP. Here's what to expect in coming episodes. Check back regularly for updates.

    9. Adding Filter Hooks to Your WordPress Theme Framework

      Adding Filter Hooks to Your WordPress Theme Framework

      Tutorial Intermediate

      Adding filters to your theme framework means that you (or others using your framework) can amend or override code or content at a later date. Here's how to...

    10. Displaying Your WordPress Widget on the Site

      Displaying Your WordPress Widget on the Site

      Tutorial Intermediate

      Now that you've coded your widget's form, you need to display its output on the site. Here's how.

    11. Building the Form for Your WordPress Widget

      Building the Form for Your WordPress Widget

      Tutorial Intermediate

      Continue building your first WordPress widget by creating the form to help users interact with your widget on the Widgets dashboard screen.

    12. Coding and Registering Your WordPress Widget

      Coding and Registering Your WordPress Widget

      Tutorial Intermediate

      Start to develop your WordPress widget by creating a class to create it and registering it with WordPress.