RSSAmplifier

Blog

blog.naderman.de

blog.naderman.deRSS feed ↗4 posts

Latest posts

PHP Property Hooks: A Cost of Change Insurance

PHP 8.4 shipped a new feature called Property Hooks . To find out what they are, check out the documentation at https://www.php.net/manual/en/language.oop5.property-hooks.php or read about their origin story from Larry Garfield on the PHP Foundation blog https://thephp.foundation/blog/2024/11/01/how-hooks-happened/ A discussion of this feature on Mastodon prompted me to write down my thoughts on…

Restarting supervisord processes in parallel

At Private Packagist we manage some of our background processes with Supervisor. It comes with a command line interface supervisorctl which has an option to restart a group of processes. The way this works is by sending the respective signal to all processes, waiting for them to terminate and then starting them all up again. The [ ]

Composer: Replace, Conflict & Forks Explained

Recently there has been an increase of cases in which Composer installs a fork of a package instead of the package the user expects. Most frequently these are forks of packages using a replace statement in their composer.json. These forks are usually meant for private use only but are still published on Packagist. Developers: composer [ ]

Composer: Skipping a dependency

Today Henrik Bjørnskov asked me if it was possible to prevent Composer from installing a package which is a dependency of another package you wish to install. The answer is yes, and this is how: Let s say we re installing bakery/blueberry-cupcake 1.0 which depends on farm/blueberries 1.0. However we d rather just have the cupcake and there s [ ]