jasacloud / api
Library to handle request and response
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/jasacloud/api
Requires
- php: >=5.4
- jasacloud/dbmanager: ^1.0
- jasacloud/logger: ^1.0
- jasacloud/mcmanager: ^1.0
This package is not auto-updated.
Last update: 2025-10-13 01:43:56 UTC
README
Configuration for nginx web server.
Add the your project
example :
<?PHP
// /location/index.php:
$api = new Api();
$api->processApi();
?>
Modify your nginx config :
location = /api {
rewrite ^(.*)$ "/location/index.php";
}
location ~ /api/ {
rewrite /api/([\._0-9a-zA-Z]+)/?([\._0-9a-zA-Z]+)/?[.*]?/?[.*]? /location/index.php?kind=$2%23$1;
}