PHP
Composer
Slim
Monolog
Twig
To serve the application by calling the below command in the root app directory.
/bin/bash serve
If your shared server runs Apache, then you need to create a .htaccess file in your web server root directory (usually named htdocs, public, public_html or www) with the following content:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
</IfModule>
To display full error details in the application set:
'displayErrorDetails' => true, // set to false in production
in the file src/settings
folder.
Use dump()
in a variable to print it neatly to the page and kill the application
i.e. dump of our response variable
Response {#38 ▼
#status: 200
#reasonPhrase: ""
#protocolVersion: "1.1"
#headers: Headers {#39 ▼
#data: array:1 [▶]
}
#body: Body {#37 ▼
#stream: stream resource @50 ▶}
#meta: null
#readable: null
#writable: null
#seekable: null
#size: null
#isPipe: null
}
}
Slim Documentation Twig Documentation Monolog Documentation whois service