Practical guides for modern PHP development.
PDO URL shortener foundation using random codes and HTTP/HTTPS URL validation.
Build XML sitemaps from a list of trusted canonical URLs using XMLWriter.
PDO pagination with validated page size and integer-bound LIMIT/OFFSET.
Basic MySQL article search with a minimum query length and prepared statement.
Consistent JSON API response helper with explicit HTTP status codes.
Email subscription storage starter with validation and a double-opt-in token hash.
Daily aggregate page counter without storing raw IP addresses or user-agent strings.
Reusable helpers for HTML escaping, whitespace normalization and safe excerpts.
Helpers for selecting allowed keys, grouping records and filtering null values.
DateTimeImmutable examples with explicit timezone conversion.
Small helpers for private directories and bounded text-file reads.
PDO connection options and transaction wrapper for MySQL applications.
Validation helpers for positive integers, allowlisted values and email addresses.
Context-aware HTML escaping and CSRF token helpers.
Bounded JSON request body reader with exception-based decoding.
A small dependency-injection example using interfaces and immutable date values.
A namespaced utility class for URL-safe slugs and text excerpts.
The official PHP manual is the primary reference for language syntax, built-in functions, extensions, configuration and migration notes.
Packagist is the default Composer package repository and a starting point for discovering PHP libraries.
PHP-FIG publishes PHP Standards Recommendations that improve interoperability across libraries and applications.
Composer manages PHP dependencies, package versions and autoloading.
PHPStan analyzes PHP code without executing it and detects type errors and other defects early.
PHPUnit is a testing framework for PHP with assertions, fixtures, data providers and test doubles.
Xdebug adds step debugging, stack traces, code coverage and profiling capabilities to PHP.
PHP_CodeSniffer detects coding standard violations and can automatically fix many formatting issues.
PHP CS Fixer automatically fixes many PHP coding style issues for consistent code formatting.
Psalm performs static analysis with a focus on types, taint analysis and potential defects.
PHPMailer is a popular PHP library for SMTP email, MIME messages and attachments.
Guzzle provides a convenient PHP API for HTTP requests, responses and middleware.
Validated contact form starter with CSRF protection and safe output handling.