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. How to Program With Yii2: Google Authentication

      How to Program With Yii2: Google Authentication

      Tutorial Intermediate

      In this episode, we'll show you how to have your Yii2 app users register and sign in with their Google accounts.

    2. A Beginners Guide to Titan Framework: Creating an Admin Panel With Titan

      A Beginners Guide to Titan Framework: Creating an Admin Panel With Titan

      Tutorial Beginner

      The WordPress admin panel is pretty open for modifications and web developers have made the most out of it. These modifications are more common in themes due...

    3. A Beginners Guide to Titan Framework: How Titan Works

      A Beginners Guide to Titan Framework: How Titan Works

      Tutorial Beginner

      Thus far, I have discussed the importance and features of Titan Framework along with the basic setup. So, let's continue from where I left off and look at...

    4. Magento Theme Development: Home Page, Part 1

      Magento Theme Development: Home Page, Part 1

      Tutorial Beginner

      As we set the stage in the previous bootstrapping article, now is the time to actually dive deep into the code, and start making changes. As an obvious...

    5. How to Program With Yii2: Using the Advanced Application Template

      How to Program With Yii2: Using the Advanced Application Template

      Tutorial Intermediate

      Let's explore Yii's advanced template, which provides integrated user sign-up and registration as well as a back-end website for administration features.

    6. How to Develop a Membership Site With WordPress: Part 1

      How to Develop a Membership Site With WordPress: Part 1

      Tutorial Intermediate

      WordPress already ships with loads of good stuff to make a membership site. Unfortunately most of the process is handled on the back end, and ideally we want...

    7. Doctrine ORM and Laravel 5

      Doctrine ORM and Laravel 5

      Tutorial Beginner

      Doctrine 2 is an ORM for PHP that provides transparent persistence for PHP objects. In this tutorial, you'll learn how to set up Doctrine ORM with Laravel 5.

    8. Using get_pages to Create Link Buttons to Your Site's Top-Level Pages

      Using get_pages to Create Link Buttons to Your Site's Top-Level Pages

      Tutorial Intermediate

      Sometimes instead of simply having your top-level pages in your site's navigation menu, you want to draw more attention to them by adding prominent links to...

    9. Magento Theme Development: Bootstrapping

      Magento Theme Development: Bootstrapping

      Tutorial Beginner

      In this second article of our Magento theme development series, we’ll set up the basis of our new theme. We’ll set up the basic directory structure of our...

    10. Improved Ajax Techniques for WordPress: Object-Oriented Programming

      Improved Ajax Techniques for WordPress: Object-Oriented Programming

      Tutorial Intermediate

      In the last post, we reviewed some advanced ways to incorporate the WordPress Ajax API into our projects using procedural programming. In this post, we're...

    11. Improved Ajax Techniques for WordPress: Procedural Programming

      Improved Ajax Techniques for WordPress: Procedural Programming

      Tutorial Intermediate

      I want to revisit the concept of Ajax in WordPress so you see some of the new APIs and how to employ them in your day-to-day work or how to refactor some of...

    12. Add an Automatic 'Featured Image' to Blog Posts Based on Category

      Add an Automatic 'Featured Image' to Blog Posts Based on Category

      Tutorial Advanced

      Adding each post's featured image to your blog listing is quite straightforward, but what if you want to give your categories featured images instead and...