PHP CLI Commands Cheat Sheet
Useful PHP command-line commands for checking runtime configuration, linting files and running scripts.
Read guide →Concise references for PHP syntax, PDO, Composer, Git and everyday development tasks.
Each guide explains the resource and links to its official website or documentation.
Useful PHP command-line commands for checking runtime configuration, linting files and running scripts.
Read guide →A concise guide to PHP parameter types, return types, union types, nullable types and strict typing.
Read guide →Understand how PHP receives form data through superglobals and how to validate and process requests safely.
Read guide →A quick reference to encoding, decoding and handling JSON data safely with PHP.
Read guide →A quick reference for reading, writing, checking and safely handling files in PHP applications.
Read guide →A practical reference for PHP errors, exceptions, Throwable, logging and production-safe error display.
Read guide →A concise reference for DateTimeImmutable, DateTimeZone, formatting, parsing and timezone-aware date handling.
Read guide →A quick reference to common PHP string functions for searching, trimming, replacing, splitting and safely handling text.
Read guide →A quick reference for common Composer commands used to install, update and inspect PHP project dependencies.
Read guide →A compact explanation of common SQL JOIN types for querying related records in MySQL-backed PHP applications.
Read guide →A quick reference to parameterized PDO queries and safe handling of dynamic SQL values in PHP.
Read guide →A concise guide to common HTTP status code classes and responses used by PHP websites and APIs.
Read guide →A practical overview of common PHP array functions for searching, transforming, filtering and combining arrays.
Read guide →A concise reference to common Git commands for checking changes, creating commits, branching and synchronizing work.
Read guide →Keep common Composer commands close at hand for adding packages, installing locked dependencies and inspecting project requirements.
Read guide →A compact guide to PDO connections, prepared statements, fetching results and handling database errors safely.
Read guide →