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. Programming With Yii2: Using the Debugger

      Programming With Yii2: Using the Debugger

      Tutorial Intermediate

      It's time to click that butterfly icon in the bottom of your screen and explore the Yii Framework debugger, a powerful assistant once you get to know it.

    2. Building Your Startup: Invite People via URL

      Building Your Startup: Invite People via URL

      Tutorial Intermediate

      Now that Meeting Planner can schedule group meetings, I decided to add a secure shareable URL to simplify broadcasting invitations.

    3. Building Your Startup: Ajax for Meeting Times and Places

      Building Your Startup: Ajax for Meeting Times and Places

      Tutorial Intermediate

      In this Ajax followup, I'll show you how I learned to reinitialize troublesome Bootstrap widgets and leverage the Google Chrome Browser Developer tools for...

    4. Creating a Custom WordPress Messaging System, Part 4

      Creating a Custom WordPress Messaging System, Part 4

      Tutorial Intermediate

      In this tutorial, we'll have a complete refactored solution that uses some intermediate object-oriented principles like inheritance. We'll also have a few...

    5. Programming With Yii2: Helpers

      Programming With Yii2: Helpers

      Tutorial Intermediate

      In Yii, Helpers are small, extensible modules providing useful features for common tasks such as string and image management or HTML and URL generation.

    6. Creating a Custom WordPress Messaging System, Part 3

      Creating a Custom WordPress Messaging System, Part 3

      Tutorial Intermediate

      In this tutorial, we'll begin implementing our Settings Messenger by adding support for errors and success messages as well as covering some points on security.

    7. New Course: Build a REST API With Laravel

      New Course: Build a REST API With Laravel

      Tutorial Beginner

      In our new course, Build a REST API With Laravel, Envato Tuts+ instructor Jeremy McPeak will teach you how to write a RESTful API using Laravel.

    8. Building Your Startup: Security Basics

      Building Your Startup: Security Basics

      Tutorial Intermediate

      We'll look at security over several episodes, but today we'll focus primarily on locking down a web server. Join us and learn the basics of cloud-based VPS...

    9. Creating a Custom WordPress Messaging System, Part 2

      Creating a Custom WordPress Messaging System, Part 2

      Tutorial Intermediate

      We're going to be making a call to the custom hook that we'll define, and we'll wire that up on the server-side. We'll also start the groundwork for our...

    10. Programming With Yii2: Routing and URL Creation

      Programming With Yii2: Routing and URL Creation

      Tutorial Intermediate

      With any MVC framework, routing is an important element of application design, security, and even performance. Learn how to manage routes and create URLs in...

    11. Creating a Custom WordPress Messaging System, Part 1

      Creating a Custom WordPress Messaging System, Part 1

      Tutorial Intermediate

      It's possible to implement a system that allows us to programmatically set our own custom messages, their type, and when and where to display them on the...

    12. Upgrading Your Linux Server to PHP 7.0

      Upgrading Your Linux Server to PHP 7.0

      Tutorial Intermediate

      Once you've tested your code locally on PHP 7.0, here's how to upgrade your production Ubuntu server.