Curated list of useful resources and cheatsheets for web developers
View the Project on GitHub zlatanstajic/ultimate-cheatsheet-for-developers
General-purpose scripting language especially suited to web development.
Read more about PHP.
See also: Composer — dependency manager for PHP projects.
# Show PHP information
php -i
# Syntax check (lint)
php -l [filename]
# Show configuration file names
php --ini
# Show PHP version
php -v
# Show loaded PHP extensions
php -m
# Show defined PHP constants (all categories)
php -r "print_r(get_defined_constants(true));"
# Run with built-in web server
php -S [address]:[port]
# Parse and execute file
php -f [filename]
# Run interactively (REPL)
php -a
# Run code directly from command line
php -r "echo 'Hello, World!';"