Once you have that done all the "php artisan" commands should work :) Running the composer command is not recommended with Sudo because the packages then have sudo permissions, if you chown the folder and all sub folders to your user you should then be able to run composer without sudo.