A single worker in a high-visibility vest walks across the tracks at a set of points, his helmet in his hand. Beside him, concrete piers carry a viaduct, and the sun is low.

Today is Giving Tuesday, and I am asking for funding for my work on PHPUnit and the libraries it is built on. I do not want that money to come out of your company's donations budget. If your company develops software with PHP, then PHPUnit is part of how that software gets made. Paying for its upkeep is a business decision, and it belongs in a business budget.

Charity is what goes to food banks, shelters, and hospices today, from people who expect nothing in return. I hope you are one of them.

A supplier you have no contract with

Packagist counts more than one billion installations of PHPUnit and more than 170,000 packages that depend on it. Most of PHPUnit's direct dependencies are libraries that I maintain as well. Some of them are used well beyond PHPUnit: sebastian/diff, for example, is also a dependency of PHP-CS-Fixer.

PHPUnit does not ship with your product, but it runs on your developers' machines and in your CI pipeline, on every push, with access to your source code and often to your credentials. It is also the tool that tells you whether a change is safe to deploy. That makes it part of your software supply chain in the full sense of the term.

A supply chain is made of suppliers, and this is where the analogy stops working. You and I have no contract. The licence lets you use, modify, and distribute the software, and it states that the software comes “as is”. I chose that licence, and I am not complaining about it. It does mean that your development process depends on a component whose maintainer owes you nothing, and whom the vast majority of its users have never paid.

Two weeks ago, in Cheap to write, expensive to depend on, I argued that what matters about a dependency is who maintains it and whether anyone pays them. Today I am applying that argument to my own work.

Sponsoring buys time

Seen as an investment, a sponsorship is unusual, because your company already collects the return. A Harvard Business School working paper estimates that recreating the most widely used Open Source software once would cost 4.15 billion US dollars. Replacing it at every company that uses it would cost 8.8 trillion. The second number is roughly two thousand times the first, and the difference is value that companies receive from work that mostly other people paid for.

Keeping that return coming requires continuous work, and most of it is invisible when it goes well:

  • I have to support every new PHP version in time, so that your upgrade does not wait for your test tooling. That includes PHPUnit 8.5, 9.6, 10.5, and 11.5, which no longer get bug fixes and which many companies still run.
  • I review every change before it is released. A new release is installed hundreds or thousands of times within minutes, so a mistake of mine becomes your problem almost immediately.
  • I fix bugs in two major versions at a time, currently PHPUnit 12 and PHPUnit 13.
  • I sign every PHAR, and recent releases come with a signed Software Bill of Materials, so that you can verify a release instead of trusting it.

Sponsoring buys time: it lets me do this work during focused working hours instead of in the evenings and at weekends. It buys no influence over the roadmap. Features, bug fixes, and priorities are not for sale, and I decide on them by what is best for the project and its users.

The risk is one person's spare time

A sponsorship is also something like insurance against a rare and expensive event. The comparison fails in one respect: there is no policy and no payout, and all that sponsoring does is lower the probability of the damage.

In 2024, xz Utils showed what such damage looks like: a backdoor was found in the compression library, which is present on almost every Linux system (CVE-2024-3094). It had got in through releases made by someone who had spent about two years earning the trust of the maintainer. That maintainer looked after the project alone and in his spare time. The weakest point in that supply chain was one person with too much responsibility and too little time.

I will keep maintaining PHPUnit whether your company sponsors it or not, so please do not read this as a threat. But “maintained” and “maintained with enough time” are different conditions. A project whose capacity is one person's spare time answers slowly when you need a fast answer, and its release waits when paid client work comes first. Those are the two risks you can reduce.

Now compare the premium with the exposure. Work out what it costs your company when the pipeline is blocked for a day, or when a PHP upgrade slips by a quarter because a tool was not ready. A sponsorship is small next to either number.

Move it to the right budget

Leave your company's donations budget to the causes it was made for, and take PHPUnit to the person who owns engineering tooling, vendor management, or risk. Treat it like any other supplier that your development depends on.

The sponsoring page explains the options: GitHub Sponsors, Liberapay, thanks.dev, and Tidelift. Companies that want to be listed as corporate sponsors, with their logo on the PHPUnit website and in the README, can write to sponsoring@phpunit.de.

If you are a developer without a budget of your own, forward this article to the person who has one. You know better than anyone else in your company how often PHPUnit ran today.

Sponsor PHPUnit