Transform Your Api Microservice Development with OpenSwoole and GEMVC
A modern OpenSwoole/Apache PHP library/framework to Build professional, High performant, Dockerized and secure Microservice APIs in minutes, not hours.
namespace AppApi;
use GemvcCoreApiService;
use GemvcHttpRequest;
use GemvcHttpJsonResponse;
use AppControllerUserController;
// API endpoint is https://yourdomain.com/user/getUsers
class User extends ApiService {
public function __construct(Request $request) {
parent::__construct($request);
}
public function getUsers(): JsonResponse {
// Check if the user is authenticated
// and has the admin role
if (!$this->request->auth(['admin'])) {
return $this->request->returnResponse();
}
return (new UserController($this->request))->list();
}
}
Core Features
Everything you need to build modern, secure PHP applications
Security by Principle
Built-in JWT authentication, input sanitization, and comprehensive protection against common vulnerabilities.
super light
whole of GEMVC with its dependancies is under 2MB with very low memory footprint andminimal dependencies.
library & framework
Use it as a powerful library to modernize legacy projects, or as a complete framework for new applications.
Type-Safe in whole Architecture
Type-Safe from Request to Response lifecycle, in controller, model, and Database.
OpenSwoole / Apache
Seamlessly switch between OpenSwoole and Apache servers - your code works identically on both.
Database Abstraction
Type-safe queries, ORM capabilities, and table generation with connection pooling for maximum performance.
Real-time Ready
WebSocket support with Redis scaling for real-time applications and live updates.
Powerful CLI
Project Initialization, DB Migration, and code generation based on your own coding style!
AI Ready
Built-in APIs and interfaces optimized for AI assistant integration and automation.
ready to use Postman Collection
visit /index/documentation in your project root, download and import json file to start using it for testing your APIs
High Performance
OpenSwoole full support With Redis integration, GEMVC is built for high-traffic demands without code changes.
straight forward installation
with help of composer and docker, you can install and use GEMVC in your project in seconds.
do you need frontend for your fantasctical project?
try STCMS! Power of PHP and React under same roof!
Ready to Build Something Amazing with GEMVC?
so what are you waiting for? go for it!