Skip to content
/ app Public

Application skeleton for rapid development with Framework

License

Notifications You must be signed in to change notification settings

linna/app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e563866 · Jun 24, 2017
Jun 24, 2017
Jun 24, 2017
Jun 1, 2017
Jun 14, 2017
May 5, 2017
Aug 28, 2016
May 5, 2017
Jun 14, 2017
Jun 12, 2017
Jun 24, 2017
Jan 2, 2017
Jun 12, 2017
Jun 24, 2017
Feb 14, 2017
Jun 13, 2017
Jun 14, 2017

Repository files navigation

Linna App


Build Status Scrutinizer Code Quality StyleCI

App Skeleton for Linna framework

Getting Started

Requirements

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.

Installation

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

Before run

Change config in config.php file placed in /var/www/html/app/config directory.

Protocol and app dir

$options = [

    'app' => [
        'urlProtocol'     => 'http://',
        'urlSubFolder'    => '/app', // es /var/www/html/app/
        'urlPublicFolder' => '/app/public', // es /var/www/html/app/public
    ],
    //other options
];

Rewrite engine

$options = [
    //other options
    'router' => [
        'basePath'    => '/app', //equal to urlSubFolder
        'badRoute'    => 'E404',
        'rewriteMode' => true,
    ],
    //other options
];

Now App can be started from browser

About

Application skeleton for rapid development with Framework

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages