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. PhpStorm: When the IDE Really Matters

      PhpStorm: When the IDE Really Matters

      Tutorial Beginner

      The IDE that you choose to use day in and day out, can make a big difference in your web dev workflow. PhpStorm offers many wonderful features to improve...

    2. Object-Oriented Programming in WordPress: Functions and Attributes

      Object-Oriented Programming in WordPress: Functions and Attributes

      Tutorial Beginner

      As we continue our discussion of object-oriented programming within the context of WordPress, it's time for us to begin talking about actual features of...

    3. How to Use New Relic With PHP & WordPress

      How to Use New Relic With PHP & WordPress

      Tutorial Beginner

      Today we will look at how to monitor a PHP application using New Relic. More specifically we will set up a basic WordPress installation and get some...

    4. Object-Oriented Programming in WordPress: Control Structures I

      Object-Oriented Programming in WordPress: Control Structures I

      Tutorial Beginner

      WordPress is a powerful CMS that provides a flexible foundation on which to build both sites and applications. If you want to extend WordPress functionality,...

    5. Refactoring Legacy Code: Part 2 - Magic Strings & Constants

      Refactoring Legacy Code: Part 2 - Magic Strings & Constants

      Tutorial Beginner

      Learn techniques for how to deal with complex and complicated unknown legacy code, how to understand it, and finally updating the Golden Master tests.

    6. Securely Handling User's Login Credentials

      Securely Handling User's Login Credentials

      Tutorial Beginner

      Consider the following tips on how to properly secure your user's login credentials.

    7. Laravel Unwrapped: Session, Auth and Cache

      Laravel Unwrapped: Session, Auth and Cache

      Tutorial Beginner

      Join me as we learn how to use Laravel's component-based system, Illuminate. Additionally, we'll see how to utilize service providers, Laravel's manager...

    8. SOLID: Part 4 - The Dependency Inversion Principle

      SOLID: Part 4 - The Dependency Inversion Principle

      Tutorial Beginner

      The Single Responsibility (SRP), Open/Closed (OCP), Liskov Substitution, Interface Segregation, and Dependency Inversion. Five agile principles that should...

    9. Setting Up a Local Mirror for Composer Packages With Satis

      Setting Up a Local Mirror for Composer Packages With Satis

      Tutorial Intermediate

      Installing all your PHP libraries with Composer is a great way to save time. But larger projects automatically tested and run at each commit to your software...

    10. SOLID: Part 3 - Liskov Substitution & Interface Segregation Principles

      SOLID: Part 3 - Liskov Substitution & Interface Segregation Principles

      Tutorial Beginner

      The Single Responsibility (SRP), Open/Closed (OCP), Liskov Substitution, Interface Segregation, and Dependency Inversion. Five agile principles that should...

    11. Validation and Exception Handling: From the UI to the Back End

      Validation and Exception Handling: From the UI to the Back End

      Tutorial Intermediate

      Sooner or later in your programming career you will be faced with the dilemma of validation and exception handling. This was the case with me and my team...

    12. SOLID: Part 2 - The Open/Closed Principle

      SOLID: Part 2 - The Open/Closed Principle

      Tutorial Intermediate

      Single Responsibility (SRP), Open/Closed (OCP), Liskov's Substitution, Interface Segregation, and Dependency Inversion. Five agile principles that should...