Skip to content

Instantly share code, notes, and snippets.

@tikitikipoo
Last active November 4, 2015 13:50
Show Gist options
  • Save tikitikipoo/eda080685972360d0b3d to your computer and use it in GitHub Desktop.
Save tikitikipoo/eda080685972360d0b3d to your computer and use it in GitHub Desktop.
プロジェクト事はじめ
vagrant開発環境構築
割愛
# フレームワーク
## CakePHPインストール
```
composer create-project --prefer-dist cakephp/app app
```
http://book.cakephp.org/3.0/ja/installation.html
# ソーシャルログイン
## twitter login
```
composer require abraham/twitteroauth
```
https://twitteroauth.com/
参考
http://qiita.com/sofpyon/items/982fe3a9ccebd8702867
## facebook login
```
composer require facebook/php-sdk-v4
```
https://github.com/facebook/facebook-php-sdk-v4
SDK Ver4からVer5にする参考サイト
Upgrade Guide: Facebook PHP SDK v4.0 to v5
https://www.sammyk.me/upgrading-the-facebook-php-sdk-from-v4-to-v5
その他参考サイト
FuelPHPでFacebook SDK for PHP v5を使う
http://goo.gl/NI0se1
# テスト環境
## PHPUnit
```
composer require --dev phpunit/phpunit
```
# 便利プラグイン
## crud plugin
```
composer require friendsofcake/crud:~4.2
```
https://github.com/FriendsOfCake/crud
document
http://crud.readthedocs.org/en/latest/
## bootstrap-ui
composer require friendsofcake/bootstrap-ui:~0.4
# その他
## Vagrantでネット接続が遅いた感じたら
https://github.com/mitchellh/vagrant/issues/1807
## Facebookログインでrequest timed outになったら
```
以下を修正
app/vendor/facebook/php-sdk-v4/src/Facebook/HttpClients/FacebookCurlHttpClient.php: CURLOPT_CONNECTTIMEOUT => 10
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment