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. Revisiting Open Source Social Networking: Installing GNU Social

      Revisiting Open Source Social Networking: Installing GNU Social

      Tutorial Intermediate

      After sampling Diaspora, Pump.io, Tent.io and others, we dive in with GNU Social and offer some thoughts on competing with Facebook and Twitter.

    2. Generate Notifications From Your Web App With the Pushover API

      Generate Notifications From Your Web App With the Pushover API

      Tutorial Intermediate

      Pushover is a great service, which makes it easy and inexpensive for developers to send push notifications to iOS and Android devices without having to...

    3. Laravel, BDD and You: The First Feature

      Laravel, BDD and You: The First Feature

      Tutorial Intermediate

      Follow along in the second part in this series on behavior-driven development with Laravel, Behat and PhpSpec. In this part we will build our first feature....

    4. Digging in to Laravel's IoC Container

      Digging in to Laravel's IoC Container

      Tutorial Intermediate

      Inversion of Control is a technique that allows control to be inverted when compared to classical procedural code. The most prominent form of IoC is, of...

    5. A Comprehensive Approach to Magento SEO: The Basics

      A Comprehensive Approach to Magento SEO: The Basics

      Tutorial Beginner

      This is the first part of a four-article series in which we'll explore Magento Search Engine Optimization techniques in detail. In this article, you'll learn...

    6. Building With the Twitter API: Using Real-Time Streams

      Building With the Twitter API: Using Real-Time Streams

      Tutorial Advanced

      While the Twitter REST API is suitable for many applications, if you want immediate updates and access to a broader array of notifications, the Twitter...

    7. Creating Maintainable WordPress Meta Boxes: Refactoring

      Creating Maintainable WordPress Meta Boxes: Refactoring

      Tutorial Beginner

      Throughout this series, we've been focusing on building maintainable WordPress meta boxes. By that, I mean that we've been working to create a WordPress...

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

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

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

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

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