fuelphpの導入とプロジェクトの作成

fuelphp絶賛勉強中。
まずは導入とプロジェクトの作成について。

環境

手順

  • oilコマンド(fuelphpプロジェクト作成shell)のインストール
  • プロジェクトの作成

oilコマンド(fuelphpプロジェクト作成shell)のインストール

  • 下記コマンドにてoilコマンドをインストールする。
    パスワードを聞かれたら、入力する。
$curl get.fuelphp.com/oil | sh

プロジェクトの作成

  • 適当なフォルダを作成し、その中で下記コマンドを実行する。
$ oil create <プロジェクト名>

なんかエラーが出ました。

Error - date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in COREPATH/classes/fuel.php on line 167

php.ini」で「date.timezone」の設定がないと怒られるみたいです。
設定しようとしたら、そもそも「php.ini」自体作成していない。。。

$ sudo cp -p /etc/php.ini.default /etc/php.ini
$ sudo vi /etc/php.ini

ひな形コピーして、「date.timezone」を設定後、再度プロジェクトの作成にてうまくいきました。
こんな感じ。

$ oil create sample
Cloning into './sample'...
remote: Counting objects: 15222, done.
remote: Total 15222 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (15222/15222), 5.11 MiB | 509.00 KiB/s, done.
Resolving deltas: 100% (6112/6112), done.
Checking connectivity... done.
Already on '1.7/master'
Your branch is up-to-date with 'origin/1.7/master'.
Updating to version 73e9db5d9952d52a46ecbc20a269a8c5f9c5b011.
    Downloading: 100%         
Use composer self-update --rollback to return to version e77435cd0c984e2031d915a6b42648e7b284dd5c
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing composer/installers (dev-master 5ed225f)
    Cloning 5ed225fe8545c4e4bf502d56fdd87791ecfdd078

  - Installing fuel/docs (1.7.2)
    Loading from cache

  - Installing fuel/core (1.7.2)
    Loading from cache

  - Installing fuel/auth (1.7.2)
    Loading from cache

  - Installing fuel/email (1.7.2)
    Loading from cache

  - Installing fuel/oil (1.7.2)
    Loading from cache

  - Installing fuel/orm (1.7.2)
    Loading from cache

  - Installing fuel/parser (1.7.2)
    Loading from cache

  - Installing fuelphp/upload (2.0.1)
    Loading from cache

  - Installing psr/log (dev-master a78d650)
    Cloning a78d6504ff5d4367497785ab2ade91db3a9fbe11

  - Installing monolog/monolog (1.5.0)
    Loading from cache

  - Installing michelf/php-markdown (1.4.0)
    Loading from cache

monolog/monolog suggests installing mlehner/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
Writing lock file
Generating autoload files
    Made writable: /Users/hogehoge/sandbox/sample/fuel/app/cache
    Made writable: /Users/hogehoge/sandbox/sample/fuel/app/logs
    Made writable: /Users/hogehoge/sandbox/sample/fuel/app/tmp
    Made writable: /Users/hogehoge/sandbox/sample/fuel/app/config

はじめてのフレームワークとしてのFuelPHP 改訂版

新品価格
¥3,758から
(2014/10/14 11:26時点)

FuelPHP入門

新品価格
¥2,786から
(2014/10/14 11:27時点)