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 Make Your First Route in Laravel 5

      How to Make Your First Route in Laravel 5

      Tutorial Beginner

      In this video tutorial from my course Get Started With Laravel 5, you'll learn how to handle your first request with your first route in Laravel 5!

    2. Building With the Twitter API: Analyzing Your Followers

      Building With the Twitter API: Analyzing Your Followers

      Tutorial Intermediate

      Twitter social engagement is often weak. Learn how to investigate how many of your followers are real people vs. bots and how many are likely to ever see...

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

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

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

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

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

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

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

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

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

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