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. Building With the Twitter API: OAuth, Reading and Posting

      Building With the Twitter API: OAuth, Reading and Posting

      Tutorial Advanced

      In this series, we're building an application called Birdcage that interfaces with the Twitter API in PHP. In this article, learn to use OAuth for...

    2. 50 Filters of WordPress: Filters 11-20

      50 Filters of WordPress: Filters 11-20

      Tutorial Beginner

      In the previous part of this series, we started going through 50 WordPress filters. Selected among hundreds, we started by reviewing 10 of them. In this...

    3. How Theme Frameworks Actually Work

      How Theme Frameworks Actually Work

      Tutorial Advanced

      Theme Frameworks can be extremely powerful. For non-technical WordPress users, they make it possible to create a unique site which looks like it's running a...

    4. 50 Filters of WordPress: An Introduction to Filters

      50 Filters of WordPress: An Introduction to Filters

      Tutorial Beginner

      WordPress is an amazing platform and the most popular content management system in the world. The reason for this title is because of its extensibility. ...

    5. How to Program With Yii2: Getting Started

      How to Program With Yii2: Getting Started

      Tutorial Beginner

      The recent release of Yii 2.0 makes it the perfect time to come up to speed with one of the most efficient, powerful and extensible PHP frameworks. This...

    6. Building a Social Profile Widget: Get Your Follower Count

      Building a Social Profile Widget: Get Your Follower Count

      Tutorial Intermediate

      Recently, a feature that's becoming more and more common with a lot of websites the social media profile widget. The widget consists of icons and text that...

    7. Creating Maintainable WordPress Meta Boxes: Save and Retrieve

      Creating Maintainable WordPress Meta Boxes: Save and Retrieve

      Tutorial Beginner

      In this article, we're going to continue our work by saving the information to the database, retrieving the information, and displaying it on the front-end....

    8. Refactoring Legacy Code - Part 11: The End?

      Refactoring Legacy Code - Part 11: The End?

      Tutorial Intermediate

      Old code. Ugly code. Complicated code. Spagetti code. Jibberish nonsense. In two words, Legacy Code. This is a series that will help you work and deal with...

    9. Creating Maintainable WordPress Meta Boxes: Verify and Sanitize

      Creating Maintainable WordPress Meta Boxes: Verify and Sanitize

      Tutorial Beginner

      Up to this point, we've put together the basic file organization of the plugin as well as the front-end, but we haven't actually implemented functionality...

    10. Basic Functional Testing With Symfony 2's Crawler

      Basic Functional Testing With Symfony 2's Crawler

      Tutorial Beginner

      Follow along as I walk you through using Symfony 2's Crawler to write basic functional tests. We'll learn how to test the entire spectrum of implementing a...

    11. Building Advanced Email Features With IMAP and PHP

      Building Advanced Email Features With IMAP and PHP

      Tutorial Intermediate

      In this tutorial, I'll walk you through some real world examples of how you can use PHP and IMAP to build new features for managing your email—features that...

    12. Building Multitenant Apps in Laravel

      Building Multitenant Apps in Laravel

      Course Advanced

      Multitenant apps are all over the web, but tackling your first one can be challenging. This course walks you through developing a multitenant application...