Skip to content

Instantly share code, notes, and snippets.

@ritalin
Last active December 9, 2015 23:19
Show Gist options
  • Save ritalin/4343639 to your computer and use it in GitHub Desktop.
Save ritalin/4343639 to your computer and use it in GitHub Desktop.
Siliexのセットアップ(Windows使いの場合)
  • 最初構成にしたかったので、Slim版をダウンロード

  • Powershellだとcurlないので、以下の記述で代用

(New-Object System.Net.WebClient).DownloadString("http://getcomposer.org/installer") > installer.php
  • UTF-16にされるので、好きなエディタでutf-8に変換

  • Composerをダウンロードする

php installer.php
  • Silexをインストールする
    • Windowsでgitとか、無理ゲーなので、ソースではなくパッケージからインストールする。
composer.phar install --prefer-dist
  • built-in-server.phpを参考に(と言うか丸パク)、ビルトインスクリプトを書き、webフォルダに置く

  • phpビルトインサーバーを起動する

php -S localhost:7777 -t ./web ./web/built-in-server.php

ブラウザで、http://localhost:7777/hello 打って、ちゃんと出力されればOK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment