Nothing prevents you from writing one function in a file, requiring that file and calling that function. Not sure what's so hard about it.
Best bet is to just build modules to namespace your functions.
Nothing prevents you from writing one function in a file, requiring that file and calling that function. Not sure what's so hard about it.