Laravel API 프로젝트 3단계 - Laravel Installer 설치

 

root@94aba7ed99b7:/var/www/html# composer global require laravel/installer
Changed current directory to /root/.composer
./composer.json has been created
Running composer update laravel/installer
Loading composer repositories with package information
Updating dependencies
Lock file operations: 28 installs, 0 updates, 0 removals
  - Locking carbonphp/carbon-doctrine-types (3.1.0)
  - Locking doctrine/inflector (2.0.9)
  - Locking illuminate/collections (v10.43.0)
  - Locking voku/portable-ascii (2.0.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 28 installs, 0 updates, 0 removals
    Failed to download doctrine/inflector from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
    Now trying to download from source
  - Syncing doctrine/inflector (2.0.9) into cache
  - Installing illuminate/filesystem (v10.43.0): Cloning 43cd2a29c9 from cache
  - Installing laravel/installer (v5.5.0): Cloning f2d65c61db from cache
19 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
17 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.
Using version ^5.5 for laravel/installer

 

Laravel Installer (Laravel Command-Line) 설치

 

root@94aba7ed99b7:/var/www/html# vi ~/.bash_profile

# .bash_profile 파일에 추가
export PATH=~/.composer/vendor/bin:$PATH

:wq

root@94aba7ed99b7:/var/www/html# source ~/.bash_profile

 

Laravel Installer 빠른 실행을 위해 실행 파일 PATH에 추가

 

root@94aba7ed99b7:/var/www/html# laravel
Laravel Installer 5.5.0

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  completion  Dump the shell completion script
  help        Display help for a command
  list        List commands
  new         Create a new Laravel application

 

Laravel Installer 잘되나 실행