App Skeleton for Linna framework
App was written for run with linna-framework and need PHP 7.0 or higher, was tested under Linux with Apache (mod rewrite on) web server with default php.ini.
Consider use of sudo command if need administrator privileges and don't forget to set proper folder permissions
With composer
cd /var/www/html
mkdir app
composer create-project --prefer-dist linna/app app
Where "app" is directory under webserver document root ex. /var/www/html/app
After, run composer dump-autoload for optimize file autoloading
composer dump-autoload --optimize
Change config in config.php file placed in /var/www/html/app/config directory.
$options = [
'app' => [
'urlProtocol' => 'http://',
'urlSubFolder' => '/app', // es /var/www/html/app/
'urlPublicFolder' => '/app/public', // es /var/www/html/app/public
],
//other options
];
$options = [
//other options
'router' => [
'basePath' => '/app', //equal to urlSubFolder
'badRoute' => 'E404',
'rewriteMode' => true,
],
//other options
];
Now App can be started from browser