Install the complete package with local command reference and every published mode.
install envenvUse $_SERVER field or a request parameter. There is no raw-secret mode.
The environment exposed to PHP is not the same thing as an interactive shell environment. Shared hosting, the web server and PHP SAPI decide which values exist.
env [env|server|request] [<name>]envshow environment variables
env <name>show variable <name>
env env [<name>]explicitly read environment variables
env server [<name>]show values from $_SERVER
env request [<name>]show values from $_REQUEST
Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.
Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.
Base and Minimum are two packages of the same current module release, not separate command versions.
Install the complete package with local command reference and every published mode.
install envInstall the reduced package. Local reference is omitted;
install env -mInstall exactly this published version.
install env -v 1.1.5Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade envRemove the extension block while leaving the core and unrelated modules intact.
install env -uExamples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.
env LIL_MODETraining snapshot — host, time and storage values vary by server
LIL_MODE trainingenvTraining snapshot — host, time and storage values vary by server
API_TOKEN [hidden]
HOME /srv/example.test
LANG C.UTF-8
LIL_MODE trainingenv env LIL_MODETraining snapshot — host, time and storage values vary by server
LIL_MODE trainingenv env LIL_modeTraining snapshot — host, time and storage values vary by server
LIL_MODE trainingenv env API_TOKENTraining snapshot — host, time and storage values vary by server
API_TOKEN [hidden]env serverTraining snapshot — host, time and storage values vary by server
DOCUMENT_ROOT /srv/example.test/public
HOME /srv/example.test
HTTP_AUTHORIZATION [hidden]
SERVER_ADDR 192.0.2.10
SERVER_NAME demo.example.testenv server SERVER_NAMETraining snapshot — host, time and storage values vary by server
SERVER_NAME demo.example.testenv server DOCUMENT_ROOTTraining snapshot — host, time and storage values vary by server
DOCUMENT_ROOT /srv/example.test/publicenv server HTTP_AUTHORIZATIONTraining snapshot — host, time and storage values vary by server
HTTP_AUTHORIZATION [hidden]env requestTraining snapshot — host, time and storage values vary by server
nested {"filter":"recent","api_key":"[hidden]","items":["one","two"]}
page overview
password [hidden]
session [hidden]env request pageTraining snapshot — host, time and storage values vary by server
page overviewenv request nestedTraining snapshot — host, time and storage values vary by server
nested {"filter":"recent","api_key":"[hidden]","items":["one","two"]}env request passwordTraining snapshot — host, time and storage values vary by server
password [hidden]env env NO_SUCH_VARIABLETraining snapshot — host, time and storage values vary by server
Variable not foundenv server NOT_FOUNDTraining snapshot — host, time and storage values vary by server
Variable not foundenv request NOT_FOUNDTraining snapshot — host, time and storage values vary by server
Variable not foundenv -zTraining snapshot — host, time and storage values vary by server
?env env LIL_MODE extraTraining snapshot — host, time and storage values vary by server
?env envTraining snapshot — host, time and storage values vary by server
API_TOKEN [hidden]
HOME /srv/example.test
LANG C.UTF-8
LIL_MODE trainingsandbox/config/.env.exampleThe example uses a file or directory from the protected /sandbox/ documentation workspace.
APP_ENV=development
APP_DEBUG=1
DB_HOST=localhost
DB_NAME=lil_sandbox
DB_USER=example
DB_PASSWORD=replace_me
Current stable release of