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. Programming With Yii2: Building a RESTful API

      Programming With Yii2: Building a RESTful API

      Tutorial Intermediate

      The Yii Framework provides straightforward support for implementing APIs, essential to making your application data available to other apps and services.

    2. How to Program With Yii2: Running Cron Services

      How to Program With Yii2: Running Cron Services

      Tutorial Intermediate

      Yii2 provides a built-in capacity for running Linux-based cron scripts. Learn how to ditch your wget scripts for a cleaner, more secure console-based approach.

    3. Building With the Twitter API: Creating Friends to Follow

      Building With the Twitter API: Creating Friends to Follow

      Tutorial Intermediate

      Learn to add followers to users' accounts with their authorization. This episode also switches to a simpler PHP-based API library.

    4. Building Your Startup: Designing a RESTful API

      Building Your Startup: Designing a RESTful API

      Tutorial Intermediate

      In order to begin mobile app development, I needed to design and code the API for Meeting Planner. Learn how it's done and how I did it in PHP with Yii.

    5. Building Your Startup: Running Multiple Domains

      Building Your Startup: Running Multiple Domains

      Tutorial Intermediate

      To create a more friendly, social branding option, I launched Simple Planner on the Meeting Planner codebase. Learn how to do this in the Yii Framework.

    6. Decoding the Proxy Class in OpenCart

      Decoding the Proxy Class in OpenCart

      Tutorial Intermediate

      Today, we're going to discuss one of the interesting concept in OpenCart that facilitates shorthand syntax to load models—the Proxy class. You've probably...

    7. How to Program With Yii2: ActiveRecord

      How to Program With Yii2: ActiveRecord

      Tutorial Intermediate

      Improve the structure efficiency and security of your database programming. Learn to apply active record patterns with your database programming in Yii2.

    8. How to Verify a Phone Number via SMS

      How to Verify a Phone Number via SMS

      Tutorial Intermediate

      Learn how to authenticate user cell phone numbers before allowing them access to ongoing texting services.

    9. Custom Controllers in OpenCart 2

      Custom Controllers in OpenCart 2

      Tutorial Beginner

      Today, we'll go through the concept of controllers in OpenCart 2.x. With the release of OpenCart 2.x version, they've introduced framework changes that...

    10. Building Your Startup: Error Logging

      Building Your Startup: Error Logging

      Tutorial Intermediate

      Finding production errors can be difficult without proper error handling or a cloud-based logging service. I tried two. Follow along and learn how logging...

    11. Building Your Startup: Importing With the Google Contacts API

      Building Your Startup: Importing With the Google Contacts API

      Tutorial Intermediate

      To make scheduling easier, I wanted people to be able to select from their Google contacts. Learn how I used the Google APIs to import them.

    12. Building Your Startup: Completing Group Scheduling

      Building Your Startup: Completing Group Scheduling

      Tutorial Intermediate

      Supporting group scheduling has always been a major goal in Meeting Planner. I've planned for it since nearly the beginning. Follow along as I begin to add...