| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Nova Framework is a PHP 5.5 MVC system. It's designed to be lightweight and modular, allowing developers to build better and easy to maintain code with PHP.
The base framework comes with a range of helper classes.
Full docs & tutorials are available at novaframework.com.
The framework requirements are limited.
Although a database is not required, if a database is to be used the system is designed to work with a MySQL database using PDO. The framework can be changed to work with another database type such as Medoo.
The framework is on packagist https://packagist.org/packages/nova-framework/framework.
Install from terminal now by using:
composer create-project nova-framework/framework foldername -s dev
The foldername is the desired folder to be created.
Option 1 - files above document root:
Option 2 - everything inside your public folder
define('APPDIR', realpath(__DIR__.'/app/').'/');
define('SYSTEMDIR', realpath(__DIR__.'/system/').'/');
define('PUBLICDIR', realpath(__DIR__).'/');
define('ROOTDIR', realpath(__DIR__).'/');
##Nginx configuration
No special configuration, you only need to configure Nginx and PHP-FPM.
server {
listen 80;
server_name yourdomain.tld;
access_log /var/www/access.log;
error_log /var/www/error.log;
root /var/www;
index index.php index.html;
location = /robots.txt {access_log off; log_not_found off;}
location ~ /\\. {deny all; access_log off; log_not_found off;}
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
##IIS with URL Rewrite module installed - http://www.iis.net/downloads/microsoft/url-rewrite
For IIS the htaccess needs to be converted to web.config:
<configuration>
<system.webserver>
<directorybrowse enabled="true"/>
<rewrite>
<rules>
<rule name="rule 1p" stopprocessing="true">
<match url="^(.+)/$"/>
<action type="Rewrite" url="/{R:1}"/>
</rule>
<rule name="rule 2p" stopprocessing="true">
<match url="^(.*)$"/
<action type="Rewrite" url="/index.php?{R:1}" appendquerystring="true"/>
</rule>
</rules>
</rewrite>
</system.webserver>
</configuration>
This has been tested with php 5.6 and php 7 please report any bugs.
See complete Change Log
| Back | FazBrowse Home | New Git URL |