This is a skeleton for a web application that uses the Slim 4 Framework.
By default this project uses the Nyholm PSR-7 implementation. But you are
free to use any other PSR-7 implementation. Just modify the composer.json
file. The two packages are nyholm/psr7 and nyholm/psr7-server.
By default this project uses the PHP-DI package to build a Container
for dependency injection.
| Code | Result |
|---|---|
url_for('hello', {'name': 'foo'})
|
/hello/foo |
full_url_for('home')
|
https://archive.diversifiedrecoverysolutions.net/ |
is_current_url('home')
|
TRUE |
current_url()
|
/ |
get_uri().scheme
|
https |
The root path for this project is /home/dctf/public_html/archive/private.