The HTTP side of our framework uses the public/index.php file as an entrypoint.
Our console application would benefit from the same kind of thing. We can solve a lot of problems and ensure consistency with such a mechanism.
So we will use a bin/console file (which is really a php file) in the same way that Symfony does. Laravel has a similar file called artisan, which also just contains php code.
13 comments