Reusable PHP functions, classes and practical code snippets.
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.