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. Moving WordPress: Moving Your Site From a Subdirectory to the Root Directory

      Moving WordPress: Moving Your Site From a Subdirectory to the Root Directory

      Tutorial Beginner

      Sometimes you need to develop a WordPress site in a subdirectory and then move it to the root directory for launch. Here I'll show you how to do so in just...

    2. How to Program With Yii2: Timestamp Behavior

      How to Program With Yii2: Timestamp Behavior

      Tutorial Intermediate

      Timestamp records in all your models with minimal effort using this essential Yii2 behavior.

    3. How to Program With Yii2: Blameable Behaviors

      How to Program With Yii2: Blameable Behaviors

      Tutorial Intermediate

      Yii2's behaviors reduce the need to repeat common code. The Blameable Behavior automates the tracking of who created and updated model entries. We'll also...

    4. Accessibility, Part 3: ARIA

      Accessibility, Part 3: ARIA

      Tutorial Intermediate

      WAI-ARIA is a W3C protocol which improves your site's interaction with assistive technologies. In this part we look at how to implement it into your theme.

    5. Using Laravel 5's Authentication Facade

      Using Laravel 5's Authentication Facade

      Tutorial Beginner

      In this quick tip, I am going to show you how to use Laravel 5's authentication facade to implement sessions, user registration, remember me, and password...

    6. Building Your Startup With PHP: Scheduling Availability and Choices

      Building Your Startup With PHP: Scheduling Availability and Choices

      Tutorial Advanced

      Learn how we use Bootstrap switches, Yii 2 MVC and AJAX to gather participant availability and meeting preferences and finalize the schedule.

    7. How to Program With Yii2: Sluggable Behavior

      How to Program With Yii2: Sluggable Behavior

      Tutorial Intermediate

      Human readable URLs are user friendly and search-engine friendly. The Yii Framework provides built-in support for readable URLs, also known as slugs.

    8. A Walkthrough on Conditional Tags in WordPress: Introduction

      A Walkthrough on Conditional Tags in WordPress: Introduction

      Tutorial Beginner

      One of the most important strengths of WordPress is its extensibility. To create such a solid infrastructure, WordPress includes lots of handy sub-systems....

    9. Introduction to Lumen

      Introduction to Lumen

      Tutorial Beginner

      Have you heard of Lumen yet? If you answered yes, that's great. If you answered no, let me explain to you just what Lumen actually is.

    10. Using Social Media to Locate Eyewitnesses to Important Events

      Using Social Media to Locate Eyewitnesses to Important Events

      Tutorial Intermediate

      Given a time and a place, how might a journalist or law enforcement detective locate potential eyewitnesses to a crime or important event? We'll explore the...

    11. Understand Layouts in OpenCart

      Understand Layouts in OpenCart

      Tutorial Intermediate

      In this tutorial, we'll explore the concept of layouts in OpenCart. We'll start by exploring the core layouts available in OpenCart, and as we move on we'll...

    12. Localize Your Web Application for Any Country With the Google Translate API

      Localize Your Web Application for Any Country With the Google Translate API

      Tutorial Intermediate

      By linking Yii's I18n Message/Extract to the Google Translate API, we can automate translation of our application into 63 languages.