composer global laravel code example Example: install laravel composer create-project --prefer-dist laravel/laravel blog "6.*"