An easy way to share and explain code snippets
- Log in with Github
- Create snippet
- View snippet
- Add comments to snippet
- Access variables from
.env
file using$value = $_ENV["NAME"];
$router->get('/(\d+)', '\App\Controllers\User@showProfile');
$router->set404('\App\Controllers\Error@notFound');
To install composer dependencies:
- Download
composer.phar
from getcomposer.org and place inside theapi/
directory - Run
php composer.phar install
from a terminal window inside theapi/
directory to install dependencies