Shorty is a PHP package which we can use to run console commands from any directory inside our project. It can be used with Laravel as well.

laravel shorty package


Shorty has only 1 dependency: You need to add ~/.composer/vendor/bin to your $PATH. Most people already have this, so installing is only one command:

composer global require michielgerritsen/shorty


Source Code