Skip to content

A bash script to install Laravel without using composer or sail docker

License

Notifications You must be signed in to change notification settings

alifdarsim/laravel-no-composer

Repository files navigation

Laravel No Composer

📦 Installing Laravel without using composer or laravel sail 📦

Problem Statement

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.

What is this?

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.

Prerequisite

Version PHP(*)
Laravel 8 7.3-8.1
Laravel 9 8.0-8.1
Laravel 10 8.1

Installation

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

Troubleshooting

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

Screenshot

Support

You can show your support by starring this project or buy me some coffee

Github Star

Buy Me A Coffee

Contribute

To contribute, see the contributing guide

License

MIT License