Tag: php
Abstract readonly Properties
PHP 8.4+
PHP 8.4 allows abstract readonly properties in abstract classes and interfaces — defining that implementations must provide a readonly property of a specific type.
3mo ago
PHP advanced
Anchors & Word Boundaries
PHP 5.3+
1
Zero-width assertions that match positions rather than characters — ^ matches start of string, $ matches end, \b matches a word boundary — ensuring patterns match in the correct location.
3mo ago
Regex beginner
Anonymous Functions / Closures (PHP 5.3)
PHP 5.3+
1
PHP 5.3 introduced anonymous functions (closures) — function() {} expressions assignable to variables, passable as callbacks, and able to capture outer scope with use().
3mo ago
PHP intermediate
Apache Kafka Fundamentals
PHP 7.0+
A distributed event streaming platform that stores messages as an immutable ordered log partitioned across a cluster — optimised for high-throughput, durable, replayable event streams rather than traditional task queues.
3mo ago
Messaging advanced
APM — Application Performance Monitoring
PHP 7.0+
1
APM tools (Datadog, New Relic, Blackfire) automatically instrument applications to profile code-level performance — identifying slow DB queries, N+1 problems, and method-level bottlenecks.
3mo ago
Observability intermediate
array_map / filter / reduce as FP Patterns
PHP 5.3+
1
PHP's array_map(), array_filter(), and array_reduce() enable functional-style data transformation pipelines — cleaner than imperative loops for many common patterns.
3mo ago
PHP intermediate
Arrow Functions fn() => (PHP 7.4)
PHP 7.4+
PHP 7.4 arrow functions (fn($x) => $x * $factor) are short closures that automatically capture outer scope — no more use($var) boilerplate.
3mo ago
PHP beginner
Attributes #[] Replacing Docblock Annotations
PHP 8.0+
PHP 8.0 native attributes (#[Route('/home')]) replace fragile DocBlock @annotations — they're syntactically valid, parseable without reflection hacks, and supported by IDEs and static analysis.
3mo ago
PHP intermediate
Authentication
PHP 7.0+
8
The process of verifying that a user is who they claim to be — typically by validating credentials (password, token, certificate) and establishing a session or issuing a signed token for subsequent requests.
3mo ago
Security intermediate
Authorisation
PHP 7.0+
3
The process of determining what an authenticated user is permitted to do — checking permissions, roles, or policies before allowing access to a resource or action.
3mo ago
Security intermediate
Accessing Undeclared Properties (PHP 8.2+)
PHP 8.2+
PHP 8.2 deprecated dynamic (undeclared) properties — PHP 9 will make them an error. Declare all properties explicitly or use AllowDynamicProperties.
3mo ago
PHP intermediate
ArgumentCountError — Wrong Arg Count
PHP 7.1+
PHP 7.1+ throws ArgumentCountError when too few arguments are passed to a function — too many arguments are silently ignored (unless using strict_types).
3mo ago
PHP beginner
Active Record Pattern
PHP 5.0+
1
A design pattern where a database row is wrapped in an object that includes both the data and the persistence logic — the object knows how to save, update, and delete itself.
3mo ago
Code Quality intermediate
Ahead-of-Time vs Just-in-Time Compilation
1
AOT compiles all code before execution (C, Go, Rust — fast startup, predictable performance). JIT compiles hot paths at runtime (PHP 8+, JVM — adapts to actual usage patterns).
3mo ago
Compiler intermediate
AI Function Calling & Tool Use
PHP 8.0+
1
LLMs requesting execution of application-defined functions — the model returns structured arguments; the application controls execution and must validate inputs.
3mo ago
AI / ML advanced
API Documentation
2
OpenAPI/Swagger for REST APIs, Postman collections for explorability, and Stoplight for design-first workflows — good API docs are the product's user interface for developers.
3mo ago
API Design intermediate
A client-generated unique key sent with non-idempotent requests — the server stores the response and returns it unchanged if the same key is received again, preventing duplicate operations.
3mo ago
API Design intermediate
Assigning new by Reference
PHP 8.1+
Writing $obj = &new ClassName() — assigning a new object by reference is redundant in PHP 5+ where objects are already passed by handle, not value.
3mo ago
PHP beginner
Asymmetric Visibility (PHP 8.4)
PHP 8.4+
PHP 8.4 allows separate read and write visibility on properties — public(get) private(set) means anyone can read but only the class can write.
3mo ago
PHP intermediate
abstract (Classes & Methods)
PHP 5.0+
1
PHP keyword that prevents instantiation and enforces method implementation in subclasses.
3mo ago
PHP beginner