Laravelのインストール(MacOS)
composer(php)のインストール (MacOS) - kubotti’s memo
composerがインストールできたので、Laravelのインストール。
composer global require "laravel/installer=~1.1"
% composer global require "laravel/installer=~1.1" Changed current directory to /Users/kubotad/.composer ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev) - Installing symfony/process (v2.7.6) Downloading: 100% - Installing symfony/console (v2.7.6) Downloading: 100% - Installing react/promise (v2.2.1) Downloading: 100% - Installing guzzlehttp/streams (3.0.0) Downloading: 100% - Installing guzzlehttp/ringphp (1.1.0) Downloading: 100% - Installing guzzlehttp/guzzle (5.3.0) Downloading: 100% - Installing laravel/installer (v1.2.1) Downloading: 100% symfony/console suggests installing symfony/event-dispatcher () symfony/console suggests installing psr/log (For using the console logger) Writing lock file Generating autoload files
zshを使っているので、
ホームディレクトリで、
vi .zshrc
を実行して、以下を追記。
export PATH=~/.composer/vendor/bin:$PATH
Laravelがインストールできた。
~% laravel Laravel Installer version 1.2.1 Usage: command [options] [arguments] Options: -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable 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: help Displays help for a command list Lists commands new Create a new Laravel application.