Review IEG grant applications.
- PHP >= 5.3.7
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [L,PT]
</IfModule>
The application follows the Twelve-Factor App configuration principle of configuration via environment variables. The following variables are expected to be provided:
- DB_DSN = PDO DSN
- DB_USER = PDO username
- DB_PASS = PDO password
The following variables can be optionally provided:
- LOG_FILE = fopen()-compatible filename or stream URI (default:
php://stderr) - LOG_LEVEL = PSR-3 logging level (default:
notice) - SMTP_HOST = SMTP mail server (default:
localhost) - CACHE_DIR = Directory to cache twig templates (default:
data/cache)
SetEnv DB_DSN mysql:host=localhost;dbname=scholarships;charset=utf8
SetEnv DB_USER my_database_user
SetEnv DB_PASS "super secret password"
For environments where container based configuration isn't possible or
desired, a .env file can be placed in the root of the project. This file
will be parsed using PHP's parse_ini_file() function and the resulting
settings will be injected into the application environment.
DB_DSN="mysql:host=localhost;dbname=scholarships;charset=utf8"
DB_USER=my_database_user
DB_PASS="super secret password"
APPLICATION_OPEN=2013-01-01T00:00:00Z
APPLICATION_CLOSE=2013-02-01T00:00:00Z
MOCK=1
- Bryan Davis, Wikimedia Foundation
Based on code developed for the Wikimania Scaholarships application.