-
-
Save ryu22e/73e79e4f7366a1c7362a to your computer and use it in GitHub Desktop.
コード改善に役立ちそうなPHPライブラリ・ツール ref: http://qiita.com/ryu22e/items/bc87f2106e5db463462a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
S3_BUCKET=dotenv | |
SECRET_KEY=souper_seekret_key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir public | |
php composer.phar init -n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
├── composer.json | |
├── composer.phar | |
└── public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require '../vendor/autoload.php'; | |
// 環境変数の読み込み | |
Dotenv::load(__DIR__ . '/..'); | |
// DATABASE_DSNが定義されていないとエラーになる | |
Dotenv::required('DATABASE_DSN'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment