Upgrade Target Version: Two Dates, Not One
The newest PHP version doesn't set the target. Compare the candidate's security end with your next upgrade window, then with the chain's slowest link.
Engineering
About Muhammet Şafak and the Engineering section — why it exists, where it is going, what gets written here and what does not.
How every piece is built
Notes, system write-ups and essays in one stream, newest first.
The newest PHP version doesn't set the target. Compare the candidate's security end with your next upgrade window, then with the chain's slowest link.
How global state creates an invisible dependency, leaks between tests and grows riskier in queue workers and Octane, and how to make state visible and local
An EOL date gives the upgrade ceiling, not the order. A 3×3 matrix crosses system criticality with trigger type and gives each cell a response window.
Not all technical debt deserves paying off. Separating debt that charges interest from debt that sits quietly, and spending a limited budget where it counts.
The PHP version is only one layer; extensions, framework, packages, base image and CI runner each constrain the one above. How to map the chain.
Opening an interface for every class just in case isn't real flexibility; it's speculative abstraction that makes code harder to read.
A Dependabot PR, an EOL notice and a CVE bulletin share one queue but not one urgency. Sort signals into three types and give each a response time.
The real payoff of unit and integration tests: which one actually prevents production bugs, and where to spend your testing budget.
A PHP 7.1 → 8.2 upgrade was put off because "it works." The bill came later: a dependency lock, batched breaking changes, and bugs spread over months.
Test coverage is not a target, it's a byproduct. The cost of tests written to push the number up that catch no bugs at all
The security, maintenance, and supply-chain cost of adding a dependency for a small function — and when writing it yourself is cheaper
Separating read and write models: the clarity CQRS buys in a complex domain, and the dead weight it adds to plain CRUD
Articles that develop one topic part by part.
Keeping a single PostgreSQL cluster healthy in production: connection pooling, backups, read/write splitting, zero-downtime migrations and restore testing.
5-part series
Treating runtime, framework and dependency upgrades as a risk decision: triggers, inventory, decision matrix, rollout and the decision not to upgrade.
5-part series
Developer tools that run entirely in your browser.
Encode and decode text as Base64, with a URL-safe variant and full UTF-8 support. Runs in your browser; your text is never sent anywhere.
Format JSON with 2-space, 4-space or tab indentation, or minify it; invalid JSON gets an error message. Runs in your browser; your data never leaves it.
Decodes a JWT header and payload and shows the exp and iat claims as ISO timestamps. It does not verify the signature; the token stays in your browser.
Cryptographically secure password generator: set the length and character classes, and optionally exclude look-alike and shell characters. Runs in your browser.
The same decision gets a different answer under a different constraint. A decision written down without its constraint stays a recipe; it is not something an engineer can return to when the decision lands on their desk a second time. The Engineering section exists for that: an engineering reference, not introductory writing.
Each piece states its decision together with its constraint — budget, team size, traffic, failure tolerance — and says when the pattern stops being the right answer. I want an archive that still shows the constraint years after the decision was made.
I measure that three ways. A piece cited as a source when engineers argue the same decision. An engineer who arrived for a tool staying for the writing. A site that opens like documentation rather than like a marketing page. The notebook will get larger. It will not get faster.