You cannot install laravel local without composer in your project.
It says that it requires zip extension
laravel/installer v1.4.0 requires ext-zip...
Install using (to install the default version):
sudo apt install php-zip
Or, if you're running a specific version of PHP:
# For php v7.0
sudo apt-get install php7.0-zip
# For php v7.1
sudo apt-get install php7.1-zip
# For php v7.2
sudo apt-get install php7.2-zip
# For php v7.3
sudo apt-get install php7.3-zip
# For php v7.4
sudo apt-get install php7.4-zip
FOR MAC USERS with CATALINA
First, install homebrew. Then, say
brew install [email protected]
brew link [email protected]
restart the console and run the laravel installer
On centos 7 I have used:
yum install php-pecl-zip
because any other solution didn't work for me.
For PHP7.1 install this
sudo apt-get install php7.1-zip
If you're facing this issue with macOS Catalina, I recommend these steps:
Install Homebrew (if you haven't already done so): head over to brew.sh or simply run this command: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Run brew install [email protected]
Update your $PATH variable to include the newly installed version of php:
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc
Reload your shell preferences script $ source ~/.zshrc
or source ~/.bashrc
Finally, install laravel: composer global require laravel/installer
For Ubuntu 16.04
, I have used this command for PHP7.2
and it worked for me.
sudo apt-get install php7.2-zip
Centos 7 with PHP7.2:
sudo yum --enablerepo=remi-php72 install php-pecl-zip
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With