通过 Laravel安装器(laravel/installer) 安装 Laravel
首先,通过使用 Composer 安装 Laravel 安装器:
composer global require laravel/installer
[Changed current directory to /root/.config/composer]
Problem 1
- laravel/installer v3.0.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- laravel/installer v3.0.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- Installation request for laravel/installer ^3.0 -> satisfiable by laravel/installer[v3.0.0, v3.0.1].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/opt/remi/php72/php.ini
- /etc/opt/remi/php72/php.d/10-opcache.ini
- /etc/opt/remi/php72/php.d/20-bcmath.ini
- /etc/opt/remi/php72/php.d/20-bz2.ini
- /etc/opt/remi/php72/php.d/20-calendar.ini
- /etc/opt/remi/php72/php.d/20-ctype.ini
- /etc/opt/remi/php72/php.d/20-curl.ini
- /etc/opt/remi/php72/php.d/20-dom.ini
- /etc/opt/remi/php72/php.d/20-exif.ini
- /etc/opt/remi/php72/php.d/20-fileinfo.ini
- /etc/opt/remi/php72/php.d/20-ftp.ini
- /etc/opt/remi/php72/php.d/20-gd.ini
- /etc/opt/remi/php72/php.d/20-gettext.ini
- /etc/opt/remi/php72/php.d/20-iconv.ini
- /etc/opt/remi/php72/php.d/20-json.ini
- /etc/opt/remi/php72/php.d/20-mbstring.ini
- /etc/opt/remi/php72/php.d/20-mysqlnd.ini
- /etc/opt/remi/php72/php.d/20-pdo.ini
- /etc/opt/remi/php72/php.d/20-phar.ini
- /etc/opt/remi/php72/php.d/20-simplexml.ini
- /etc/opt/remi/php72/php.d/20-sockets.ini
- /etc/opt/remi/php72/php.d/20-sqlite3.ini
- /etc/opt/remi/php72/php.d/20-tokenizer.ini
- /etc/opt/remi/php72/php.d/20-xml.ini
- /etc/opt/remi/php72/php.d/20-xmlwriter.ini
- /etc/opt/remi/php72/php.d/20-xsl.ini
- /etc/opt/remi/php72/php.d/30-mysqli.ini
- /etc/opt/remi/php72/php.d/30-pdo_mysql.ini
- /etc/opt/remi/php72/php.d/30-pdo_sqlite.ini
- /etc/opt/remi/php72/php.d/30-wddx.ini
- /etc/opt/remi/php72/php.d/30-xmlreader.ini
- /etc/opt/remi/php72/php.d/30-xmlrpc.ini
- /etc/opt/remi/php72/php.d/40-igbinary.ini
- /etc/opt/remi/php72/php.d/40-msgpack.ini
- /etc/opt/remi/php72/php.d/50-redis.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.