The simple MVC PHP Framework.
- NGINX 1.16
- PHP 7.3.11
- MySQL 8.0
- To create a project, execute the
create-project.sh
file which will guide you through the process of creating a amazing project with the Framework.
$ ./create-project.sh
- Now your App should be created and you are ready to start using Fryske Oranjekoeke. If you are using NGINX, make sure you have the correct Rewrite Rules set (noted below).If you are using APACHE, the
.htaccess
file is already present in:yourproject/public/.htaccess
. - To make sure Fryske Oranjekoeke will be loading everything it needs, tell Fryske Oranjekoeke if this App is an API or just a normal MVC App in
yourproject/config/config.ini
underruntime
->is_api
.
location /
{
# If the request was made to a JS/CSS File, don't rewrite.
if ($request_uri ~* \.(?:css|js|map|jpe?g|png)$) {
break;
}
rewrite ^/(.*) /app/public/index.php last;
}
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /public/ [L]