Does anyone know how to write php libraries in a modular way so that you
can both test the libraries/functions on the command line with arguments
and/or use the php library as a part of your web code with 'require_once()'
syntax? Sort of like how Python or Ruby works?