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

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

    3. Building Your Startup: Meetings With Multiple Participants

      Building Your Startup: Meetings With Multiple Participants

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

    4. Building Your Startup: Requesting Scheduling Changes

      Building Your Startup: Requesting Scheduling Changes

      Tutorial Intermediate

      Often we need to change a meeting after it's been scheduled. Solving this requires both social engineering and lots of code. Follow along to see how I built it.

    5. Using the New York Times API to Scrape Metadata

      Using the New York Times API to Scrape Metadata

      Tutorial Intermediate

      Learn how to reach behind the paywall and gather article metadata from The New York Times in our follow-up to web scraping with PHP.

    6. How to Scrape Web Pages for Metadata

      How to Scrape Web Pages for Metadata

      Tutorial Intermediate

      Learn how to make it simple for users to add links to your website by leveraging PHP to scrape metatags such as title and description from URLs.

    7. Building Your Startup: Advanced Scheduling Commands

      Building Your Startup: Advanced Scheduling Commands

      Tutorial Intermediate

      There are lots of critical scheduling features to build and then fit into a small responsive user interface. Learn how I lean on Bootstrap to integrate them...

    8. Building Your Startup: Automatic Time-Zone Detection

      Building Your Startup: Automatic Time-Zone Detection

      Tutorial Intermediate

      As people plan meetings, it's important not just to allow time-zone customization but to make it proactive and simple. Follow our PHP and JavaScript...

    9. Using Namespaces and Autoloading in WordPress Plugins, Part 4

      Using Namespaces and Autoloading in WordPress Plugins, Part 4

      Tutorial Intermediate

      In the final part of this series, we'll employ everything we've learned thus far by applying namespaces to our code and writing our own autoloader.

    10. Building Your Startup: Preparing for Text Messaging

      Building Your Startup: Preparing for Text Messaging

      Tutorial Intermediate

      Learn how to integrate common SMS services into the Meeting Planner application. Today we demonstrate basic signup, integration, and trial text messages.

    11. Building Your Startup: Increasing Security

      Building Your Startup: Increasing Security

      Tutorial Intermediate

      With the alpha live, it was time to deepen security for the beta milestone. Follow along as I research and code additional protections in the Yii Framework.

    12. Integrate External Libraries in OpenCart Using Composer

      Integrate External Libraries in OpenCart Using Composer

      Tutorial Intermediate

      Almost every framework nowadays has built-in support of Composer, an awesome dependency management tool in PHP, and OpenCart is no exception. In this...