Partial Function Application in PHP 8.6 will let you write a "preconfigured" callable by calling a function with some arguments and using placeholders for the rest.
The true work is in building complexity into software, then thoughtfully editing and pruning it into something that takes a minute to learn, yet offers a lifetime of mastery for those who want to accomplish complicated things.