Setup Config

In order to protect your sensitive credentials, we ignore config.php to be committed in the source control. After installation via composer, fill in your desired credentials and know more of it below.

<?php

$config = [

    // DATABASE
    'driver'    => 'mysql',
    'host'      => '127.0.0.1',
    'database'  => '',
    'username'  => 'root',
    'password'  => '',

    // APP CONFIG
    'base_url' => '',
    'app_name' => '',

    // for more flexible database migration please indicate 
    // the path of mysql in your machine including the trailing slashes.
    'mysql_path' => '',

    // choices: development, production
    'environment' => 'development',

    // EMAIL
    'smtp_host'     => '',
    'smtp_username' => '',
    'smtp_password' => '',
    'smtp_auth'     => true,
    'smtp_auto_tls' => true,
    'smtp_port'     => 25,

];

base_url - it's used to tell the router which is the starting point to read a given url. In local and in hosting it is quite similar: - localhost development - in htdocs we provide a folder name to store our application's files and directories right? then all we have to do is set the 'base_url' => 'example-app' ("example-app" is the folder name of your app in htdocs) - hosting server deployment - if your application is inside a folder in a hosting server's domain like example.com/sprnva/login then set 'base_url' => 'sprnva' - if your application is in the root directory of a hosting server's domain like example.com/login then set 'base_url' => ''

mysql_path - In order to maximize the use of database migration module please indicate the path of mysql/bin in your machine including the trailing slashes.

Environment - this is to identify if your app is for development only or for production. Note that in production mode, some modules may not work due to security reasons and to avoid conflicts and error in your application.

Last updated