Reader Stacks

GUIDES

PHP

Core PHP language features, patterns, and fundamentals.

Access Modifiers in PHP: public, protected, and private

The three visibility keywords control where a property or method can actually be accessed from — the distinction between protected and private specifically comes down to whether a subclass gets access too.

PHP Traits: Sharing Code Between Classes

PHP classes can only extend one parent — traits are the language's answer to needing the same reusable method in several otherwise-unrelated classes without that single-inheritance limit getting in the way.

Connecting PHP to MySQL With PDO

PDO is the modern, framework-agnostic way to talk to MySQL from plain PHP — and prepared statements aren't optional if user input touches the query.

Connecting PHP to MySQL Without a Framework

A prepared statement isn't an optional refinement over string-concatenated SQL — it's the actual fix for SQL injection, which string escaping alone doesn't fully close off.

What Is Composer, and How to Install It?

Composer resolves dependencies per-project, not globally — this is exactly why two Laravel projects on the same machine can run entirely different, mutually incompatible versions of the same package without conflict.