There is many time I need to create a Laravel project but there is no composer install on the machine or I just cant install composer due to sudo issue.
This happen many times, especially during new docker installation and it's feel like a sin to install composer on a docker just to run it once and then never touch it again.
A bash script to install laravel with vendor folder pre-installed. So you dont have to install any composer or sail (docker) to run laravel.
Version | PHP(*) |
---|---|
Laravel 8 | 7.3-8.1 |
Laravel 9 | 8.0-8.1 |
Laravel 10 | 8.1 |
To start installing Laravel, run below curl or wget command
- If you prefer to use CURL
bash <(curl -s https://raw.githubusercontent.com/alifdarsim/laravel-no-composer/master/curl.sh)
- Or you want wget instead
bash <(wget -O - https://raw.githubusercontent.com/alifdarsim/laravel-no-composer/master/wget.sh)
You will be promped to name your Laravel project and choose Laravel version to install
Enter your Laravel project name (eg: my-project)
> my-project
Choose Laravel version to install:
Laravel 8.x
> Laravel 9.x
Laravel 10.x
After the installation finish, run below command to run your laravel project
cd my-project
php artisan serve
Voilaaa! You just success installing laravel without using composer or laravel sail. After this, you can continue the normal laravel setup installation such as php artisan migrate
Q: I got an error when using this package.
A: Most error happen due to missing PHP dependencies required by Laravel itself. Simply make sure you install all of the PHP extension needed depends on your PHP version as shown here
You can show your support by starring this project or buy me some coffee
To contribute, see the contributing guide