Skip to content

Instantly share code, notes, and snippets.

@ryu22e
Last active September 13, 2016 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryu22e/73e79e4f7366a1c7362a to your computer and use it in GitHub Desktop.
Save ryu22e/73e79e4f7366a1c7362a to your computer and use it in GitHub Desktop.
コード改善に役立ちそうなPHPライブラリ・ツール ref: http://qiita.com/ryu22e/items/bc87f2106e5db463462a
S3_BUCKET=dotenv
SECRET_KEY=souper_seekret_key
mkdir public
php composer.phar init -n
├── composer.json
├── composer.phar
└── public
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