PHP

PHP has existed for more than 30 years and continues to evolve. In this category, I share small observations, differences between language versions, and situations I encounter in my everyday work.

php-debuginfo-safely-debugging-objects-containing-secrets-cover.png
PHP

PHP __debugInfo(): Safely Debugging Objects That Contain Secrets

While developing AVN Center, I added a Product Registry object that contains a secret hash. The application needs that value, but it should not accidentally appear during debugging. This article shows how __debugInfo() defines a safe diagnostic representation while preserving enough context to investigate problems.

151
php-85-pipe-operator-laravel-real-code.png
PHP

PHP 8.5 Pipe Operator in Real Laravel Code: Where |> Actually Improves Readability

While building the IndexNow integration in Laravel, I used PHP 8.5's Pipe Operator to clean and normalize a URL list through several transformations. Using real production code, I compare |> with nested function calls and show where the pipeline syntax improves readability and where I would avoid it.

184
php-85-laravel-package-laradock-composer-upgrade.png
PHP

Upgrading Laravel to PHP 8.5: Laradock and Composer package migration

PHP 8.5 is already stable, although some server providers still do not offer even PHP 8.4. This article explains how I installed PHP 8.5 locally, updated Laradock to run multiple PHP versions side by side, and raised the baseline of my own Laravel package.

335