GEMVC Documentation
Complete guide to building modern, secure PHP applications with GEMVC framework
API Reference
Complete API reference for the GEMVC framework, including all classes, methods, and interfaces.
Core Classes
ApiService
Base class for API services with built-in authentication and response handling.
Methods:
auth(array $roles): bool
- Check user authenticationreturnResponse(): JsonResponse
- Return authentication error responsegetUsers(): JsonResponse
- Example method for user operations
Request
HTTP request handler with input validation and sanitization.
Methods:
get(string $key): mixed
- Get request parameterpost(string $key): mixed
- Get POST datafile(string $key): array
- Get uploaded fileauth(array $roles): bool
- Check authentication