Configuration
Define environments, database access, and platform settings.
JamilX reads configuration from .env (generated from .env.example during install). The runtime parses it via parse_ini_file(), while core defaults live inside core/configs/.
.env Essentials
Store environment variables and secrets in the repository root.
SITENAME="JamilX framwork"
MODE="development"
DB_HOST="localhost"
DB_USER="root"
DB_PASS=""
DB_NAME="js"
API_KEYS="LetTestTheKey"
Health Check
Run diagnostics whenever you update configuration.
php jamilx doctor
App & Site
- SITENAME, SITE_DESCRIPTION, SITE_MAIL
- SITE_THEME, SITE_LOGO
- SITE_OWNER, SITE_OWNER_ADDRESS
- MAIL_DRIVER, MAIL_HOST, MAIL_PORT
- MAIL_USERNAME, MAIL_PASSWORD
- MAIL_ENCRYPTION, MAIL_FROM_EMAIL
- MAIL_FROM_NAME, MAIL_REPLY_TO, MAIL_DEBUG
API
- API_KEYS
- API_CORS_ALLOWLIST
- API_RATE_LIMIT, API_RATE_WINDOW
- AIKEYS[huggingface], AIKEYS[gemini], AIKEYS[codex]
Environment Modes
Set MODE to load the matching bootstrap class: development, production, or maintainance.