14
19

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MacにLaravel入れてみる

Posted at

MacにLaravel入れてみたメモ。

PHPはインストール済み。

$ php -v
PHP 5.5.27 (cli) (built: Jul 23 2015 00:21:59) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies

composerのインストール

$ curl -sS https://getcomposer.org/installer | php

なんか出た

Downloading 1.1.1...

Composer successfully installed to: /Users/you-me/composer.phar
Use it: php composer.phar
Some settings on your machine may cause stability issues with Composer.
If you encounter issues, try to change the following:

The OpenSSL library (0.9.8zc) used by PHP does not support TLSv1.2 or TLSv1.1.
If possible you should upgrade OpenSSL to version 1.0.1 or above.

PATHを通す。($PATHに追加でうまくいかなかったのでとりあえずファイルをコピー)

$ echo $PATH
$ mv composer.phar /usr/local/bin/composer

結果

$ composer -V
Composer version 1.1.1 2016-05-17 12:25:44

LaravelインストーラのDL

$ composer global require "laravel/installer=~1.1"

結果

$ composer global require "laravel/installer=~1.1"
Changed current directory to /Users/you-me/.composer
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing symfony/process (v3.0.6)
    Downloading: 100%         

  - Installing symfony/polyfill-mbstring (v1.1.1)
    Downloading: 100%         

  - Installing symfony/console (v3.0.6)
    Downloading: 100%         

  - Installing guzzlehttp/promises (1.1.0)
    Downloading: 100%         

  - Installing psr/http-message (1.0)
    Downloading: 100%         

  - Installing guzzlehttp/psr7 (1.3.0)
    Downloading: 100%         

  - Installing guzzlehttp/guzzle (6.2.0)
    Downloading: 100%         

  - Installing laravel/installer (v1.3.3)
    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

プロジェクトの作成

$ composer create-project laravel/laravel test-project --prefer-dist

最新版がだーーーっとDLされてきて終わり。

起動確認する。

$ cd test-project
$ php artisan serve

参考)
http://readouble.com/laravel/4/2/0/ja/quick.html
http://qiita.com/edisonthk/items/17bbcf3e4ac782bdff16

14
19
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
19

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?