Free course on freeCodeCamp

The PHP Handbook: Learn PHP for Beginners

8 hoursFree

Reviewed by the FreeCodingCourses.com editorsLast reviewed: How we review

At a glance

Level
Beginner
Hours
8
Cost
Free

No certificate with this course.

Open Course

freeCodeCamp's The PHP Handbook teaches PHP fundamentals, object-oriented programming, and working with databases. The entire course is free on freeCodeCamp.org in video and written formats. After finishing, you can write PHP scripts and understand how PHP powers dynamic websites. PHP runs on about 77% of websites with a known backend, making it one of the most widely deployed languages. The main limitation: older language with some quirky design decisions. Modern frameworks (Laravel, Symfony) are more enjoyable to use than raw PHP, so pair this with Laravel to see PHP's full potential.

PHP is used in 77.5% of all websites with a known server-side programming language according to W3Techs (source: w3techs.com/technologies/details/pl-php).

Editor’s take

Best for
Beginners who want to learn modern PHP from text, and anyone who last used PHP 5 or earlier and wants to catch up on version 8.
What you will be able to build
Flavio Copes covers setup, strings, numbers, arrays, conditionals, loops, functions, map, filter and reduce, object-oriented PHP, errors and exceptions, dates, enums, PHP for web apps, Composer and Packagist, and deploying an application.
The hardest part
Getting PHP running locally before your first program, and then the object-oriented chapter, where the pace picks up. It is a long read with no exercises, so type out the examples rather than just reading them.
What to take next
With the language in hand, freeCodeCamp's Laravel course shows a full web app in the framework the handbook itself recommends. Learn Laravel by Building a Medium Clone →

Written from the course’s own syllabus and our review criteria.

About This Course

freeCodeCamp's free PHP handbook by Flavio Copes. A complete written introduction to PHP: syntax, control flow, functions, arrays, OOP, and working with databases. A solid foundation in one of the web's most widely-deployed server languages.

Course Details

Platform
freeCodeCamp
Language
PHP
Level
beginner
Duration
8h
Certificate
No
Cost
Free
All Courses

Frequently Asked Questions

Is freeCodeCamp's PHP course free?

Yes, completely free. Video and written handbook both on freeCodeCamp.org.

Is PHP still relevant?

Very. Most of the web runs on PHP (WordPress, Drupal, Laravel apps). Learning PHP opens doors to maintaining and building sites.

Is PHP a good language to learn?

For web development, yes. For general programming, other languages are more elegant. PHP is web-focused and good at what it does.

Does this teach Laravel or Symfony?

No, just PHP core. After this, learn Laravel (PHP's most popular web framework) to build modern PHP applications.

What's the job market like for PHP?

Strong. WordPress development, custom PHP sites, and Laravel positions are plentiful and often pay well.

More PHP Courses

PHPIntermediate

Learn Laravel by Building a Medium Clone

freeCodeCamp's in-depth Laravel course by The Codeholic. Takes you from setting up your Laravel environment to building a complete Medium-style blogging platform: routing, Eloquent ORM, Blade templates, authentication, and deployment. Free on YouTube.