I have a command interpreter in php. It lives inside the commands directory and needs access to every command in the command file. Currently I call require once on each co
You can't require_once a wildcard, but you can programmatically find all the files in that directory and then require them in a loop
foreach (glob("*.php") as $filename) { require_once($filename) ; }
http://php.net/glob