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. 20+ Most Useful PHP Scripts for 2023

      20+ Most Useful PHP Scripts for 2023

      Tutorial Beginner

      Whether you need to create an email form, add a shopping cart to your eCommerce store, or create a contact form with validation, there's a PHP script that's...

    2. How to Create a MySQL-Powered Forum From Scratch in Laravel

      How to Create a MySQL-Powered Forum From Scratch in Laravel

      Tutorial Beginner

      In this tutorial, we're going to build a PHP/MySQL-powered forum from scratch in Laravel 9.

    3. Real-World OOP With PHP and MySQL

      Real-World OOP With PHP and MySQL

      Tutorial Intermediate

      Today, we're going to discuss the basics of object-oriented programming in PHP and MySQL. We'll build a class which is capable of performing the CRUD...

    4. Sanitize and Validate Data With PHP Filters

      Sanitize and Validate Data With PHP Filters

      Tutorial Intermediate

      Data validation is an integral part of working with forms. Not only can invalid submitted data lead to security problems, but it can also break your webpage....

    5. 15 Best PHP Event Calendar and Booking Scripts... and 3 Free Options

      15 Best PHP Event Calendar and Booking Scripts... and 3 Free Options

      Tutorial Beginner

      Discover 15 of the best PHP calendar scripts. Whether you need an appointment booking script, an event calendar script, or a PHP calendar reservation system,...

    6. How to Use Amazon S3 & PHP to Dynamically Store and Manage Files With Ease

      How to Use Amazon S3 & PHP to Dynamically Store and Manage Files With Ease

      Tutorial Intermediate

      Amazon S3 (Simple Storage Service) is a cloud-based object storage service. In this article, we're going to discuss how you can use Amazon S3 to store and...

    7. How to Code a Signup Form With Email Confirmation

      How to Code a Signup Form With Email Confirmation

      Tutorial Beginner

      In this tutorial, we'll create a user signup form that adds a user to a database, and then sends out a confirmation email that the user must click on before...

    8. 12 Best CRM & Project Management PHP Scripts (With 3 Free)

      12 Best CRM & Project Management PHP Scripts (With 3 Free)

      Tutorial Beginner

      Do you want your customers to have confidence in you? Do you want to keep them happy and coming back? The good news is that with CRM and project management...

    9. PHP Tutorial for Beginners: Free 7-Hour Course

      PHP Tutorial for Beginners: Free 7-Hour Course

      Tutorial Beginner

      The go-to free course for beginners to learn the fundamentals of PHP programming. Everything from if statements to MySQL in one course.

    10. How to Build a REST API With Laravel

      How to Build a REST API With Laravel

      Tutorial Beginner

      There are a lot of moving pieces to coding a RESTful API, but Laravel makes it a lot easier. In this free course, you'll learn everything you need to know to...

    11. 8 Best PHP CRUD Generators and Frameworks on CodeCanyon

      8 Best PHP CRUD Generators and Frameworks on CodeCanyon

      Tutorial Beginner

      Database code is repetitive, but very important to get right. That's where PHP CRUD generators and frameworks come in—they save you time by automatically...

    12. How to Get and Set Featured Image Sizes in Your WordPress Theme

      How to Get and Set Featured Image Sizes in Your WordPress Theme

      Tutorial Beginner

      This tutorial will teach you how to get and set the size of featured images in your WordPress theme.