PHP code example of satmaxt / slim-boilerplate

1. Go to this page and download the library: Download satmaxt/slim-boilerplate library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

satmaxt / slim-boilerplate example snippets


return [
    'driver'    => 'mysql',
    'host'      => 'localhost',
    'database'  => 'yourdbname',
    'username'  => 'yourdbusername',
    'password'  => 'yourdbpassword',
    'charset'   => 'utf8',
    'collation' => 'utf8_unicode_ci',
    'prefix'    => '',
];

$app->addErrorMiddleware(true, true, true);