shpala

Ultrasimple and dependency free PHP MVC framework with Ruby On Rails like API


Project maintained by 127 Hosted on GitHub Pages — Theme by mattgraham

Shpala MVC engine

Requirements

Run local server

Production Ubuntu

sudo apt-get install php-fpm php-mysql

and

server {
	listen 80;
	server_name site.com;
	root /var/www/site.com/current/public;
	access_log /var/www/site.com/current/log/nginx.access.log;
	error_log /var/www/site.com/current/log/nginx.error.log;
	index index.php;
	#Specifies that Nginx is looking for .php files
	location ~ \.php$ { 
		#If a file isn’t found, 404
		try_files $uri =404; 
		#Include Nginx’s fastcgi configuration
		include /etc/nginx/fastcgi.conf;
		#Look for the FastCGI Process Manager at this location 
		fastcgi_pass unix:/run/php/php7.2-fpm.sock; 
	} 
}