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

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

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

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

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

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

    7. Laravel, BDD and You: Let’s Get Started

      Laravel, BDD and You: Let’s Get Started

      Tutorial Intermediate

      Welcome to this series about developing Laravel applications using a behavior-driven development (BDD) approach. Full stack BDD can seem complicated and...

    8. Create a Custom Page in OpenCart

      Create a Custom Page in OpenCart

      Tutorial Intermediate

      Working with any open source framework or CMS, as a developer you'll always come up with the million dollar question, how do I create my own custom page...

    9. AngularJS and Laravel: Finishing Building a CRM

      AngularJS and Laravel: Finishing Building a CRM

      Tutorial Beginner

      In this part of the tutorial, we will build the front-end of our application using AngularJS. Angular is a really unique framework. Instead of abstracting...

    10. PHP 5.6: What's New

      PHP 5.6: What's New

      Tutorial Beginner

      It's been a long time coming, but we finally have a new version of PHP. It offers some nice new features and improvements, while other features have been...

    11. Creating a Custom WordPress Registration Form Plugin

      Creating a Custom WordPress Registration Form Plugin

      Tutorial Intermediate

      Out-of-the-box, WordPress provides a custom registration form that can be used to setup a new user, or to add a new user when adding them to an existing...

    12. Creating Maintainable WordPress Meta Boxes: The Layout

      Creating Maintainable WordPress Meta Boxes: The Layout

      Tutorial Intermediate

      In the first post, we looked at the initial directory structure and setup the basic code required to get a plugin running in WordPress. In this post, we're...