Download the PHP package linna/app without Composer
On this page you can find all versions of the php package linna/app. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package app
Short Description Linna Application
License MIT
Homepage https://github.com/linna/app
Informations about the package app
About
Application Skeleton for Linna framework
Actual stable environment
- app 0.16.0
- framework 0.27.0
- auth-mapper-* 0.2.0
Index
- Requirements
- Installation
- Before first run
- Protocol and app dir config
- Router config
- Url rewriting
- Apache Virtual Host config for mod_rewrite
- Apache .htaccess config for mod_rewrite
- Nginx
- Dot env file
Requirements
- App need linna/framework, please read the changelog for know with which version the app works.
- PHP 7.4 or higher.
Note: App was only tested under Linux with Apache web server with default php.ini
Installation
Note: Consider use of sudo command if need administrator privileges and don't forget to set proper folder permissions
With composer
Where app
is directory under webserver document root ex. /var/www/html/app
After, run composer dump-autoload for optimize file autoloading
Before first run
Change config in config.php
file placed in /var/www/html/app/config
directory.
Protocol and app dir config
Router config
Url rewriting
If you enable the option of the router named rewriteMode
in config.php
,
need to configure your virtual host/server block.
Apache Virtual Host config for mod_rewrite
For Apache VirtualHost config please see:
http://httpd.apache.org/docs/current/vhosts/
For Apache mod_rewrite config please see:
https://httpd.apache.org/docs/current/rewrite/
Apache .htaccess config for mod_rewrite
If you haven't access to your apache virtual host configuration, you can add .htaccess files to the app for enable mod_rewrite.
Create .htaccess
file in app/
directory with this content:
Create .htaccess
file in app/public/
directory with this content:
Nginx
For Nginx Server Blocks config please see:
https://www.nginx.com/resources/wiki/start/topics/examples/server_blocks/
Setting url rewrite with Nginx is simpler than Apache counterpart,
add try_files $uri $uri/ /index.php?$args;
to location
block:
Dot env file
With composer
installation, a .env
file is created into app
root directory
and it could be used for declaring default environment variables.
.env
file content look like this:
.env
file valid keys:
Values declared in the file will overwrite config.php
values.
Position of .env
file could be changed editing envFile
value.
If you do not want use .env
file can delete it.
All versions of app with dependencies
linna/dotenv Version >=1.1
linna/auth-mapper-mysql Version >=0.2
linna/framework Version >=0.27