Skip to content

pavel-tashev/APIJet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APIJet

Simple PHP Framework for RESTful API

Web server config (nginx)

server {
	listen 80;
	server_name your-restful-api.com;

	root /usr/share/nginx/your-restful-api.com/Public/;
	index index.php index.html;
	error_log /var/log/nginx/your-restful-api.com-error.log;

	location / {
		try_files $uri $uri/ /index.php?$uri&$args;
		if (-f $request_filename) {
			break;
		}
		if (-d $request_filename) {
			break;
		}
		rewrite ^(.+)$ /index.php?$1 last;
	}

	location ~ \.php$ {
		try_files $uri $uri/ /index.php?$query_string;
		fastcgi_pass unix:/var/run/php5-fpm.sock;
		fastcgi_index index.php;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
		include fastcgi_params;
	}
}

About

PHP Framework for RESTful API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%