お仕事でLaravelを使いそうなので、しれっとPHPの環境を整備したときの作業メモ。
チュートリアルに従って作業。
https://readouble.com/laravel/5.6/ja/installation.html
coposerからinstallerを使用
$ composer global require "laravel/installer"
インストール先
.config/composer/vendor/bin/
この配下にlaravelコマンドまでのsymbolic linkがあるので
.bashrcにパス追加しておく。
で、確認。
$ laravel -v
Laravel Installer 2.0.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.
よさげ。
あとは laravel new hogehogeとかしてプロジェクトの雛形を作る。