I "minimally trust" the PHP and PostgreSQL projects to provide non-compromised binaries of their respective programs, which I both depend on. This means that I trust them in the sense that I have no real choice but to trust them.
However, I have well over 100,000 lines of third-party PHP libraries (managed through Composer) which I also am forced to blindly trust in practice. Even if "Symphony" might be a large project, and perhaps not too likely to contain malicious injected code, there are various obscure PHP libs created by a single guy 5 years ago, who I'm forced to trust an equal amount. I do not trust those whatsoever, but I have no choice but trust that they don't log in to their Github account and make a change which steals all my data and have me auto-fetch it with the next time Composer runs its update mechanism.
(I don't even use Symphony myself. It's a massive dependency by some other third-party PHP library.)
Why is there no "protection layer" for this? I'd like to be able to tell PHP or Composer that "this library does not get to use the network connection whatsoever, and can only see this directory, and cannot launch any commands on its own", etc. You know, some kind of minimal protection layer to avoid a catastrophe when ObscureAuthor's little PHP library gets "hacked" on GitHub and starts sending my wallet.dats to some server in Russia.
At least with a security layer as I describe, the worst thing that could happen is that the library starts lying about numbers to my own application's scripts, but at least it cannot do fishy things freely over the network and stuff like that which I fear constantly.
PS: Please do not tell me "Docker". Docker is vaporware to me. I've tried to use it for literally many years but still haven't figured out how it's supposed to run, so no, it's not easy to use and not what I'm talking about. PS 2: I can't follow the advice to "use only major libraries" because extremely few libraries are anything but obscure and have a monopoly, meaning there are no alternatives.