Skip to content

adminhospital/APIJet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome on board!

Logo

Getting started

For quick start it's recomend to have a look at the skeleton project APIJet/skeleton.

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;
	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

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 100.0%