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 authentication
  • returnResponse(): JsonResponse - Return authentication error response
  • getUsers(): JsonResponse - Example method for user operations

Request

HTTP request handler with input validation and sanitization.

Methods:

  • get(string $key): mixed - Get request parameter
  • post(string $key): mixed - Get POST data
  • file(string $key): array - Get uploaded file
  • auth(array $roles): bool - Check authentication