4uruanna / light-api
A slim API skeleton
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:project
pkg:composer/4uruanna/light-api
Requires
- php-di/slim-bridge: ^3.4
- slim/psr7: ^1.8
- slim/slim: ^4.15
This package is not auto-updated.
Last update: 2025-11-26 10:48:43 UTC
README
Version: 1.0.0
Prerequisites
| Dependency | Version |
|---|---|
| Php | 8 |
| Composer | 2 |
Configuration
All values below are consumed via the global variable
$_SERVER
| Key | Require | Type | Default | Description |
|---|---|---|---|---|
| ENVIRONMENT | False | DEVELOPMENT, PRODUCTION or TEST |
DEVELOPMENT |
Environment |
| CACHE_DIRECTORY | False | String | NULL |
Works only on production. Specifies where all caches should be stores |
| DATE_TIMEZONE | False | String | NULL |
Relate to PHP timezones |
| ALLOW_CORS | False | Boolean | FALSE |
Allow cross-origin resource sharing (CORS) |
| CORS_ORIGIN | False | String | * | |
| CORS_HEADERS | False | String | * | |
| CORS_METHODS | False | String | GET, POST, PUT, PATCH, DELETE, OPTIONS |