Microservice APIs in minutes SUPER EASY with GEMVC
Well Documented and Easy to Learn, modern OpenSwoole/Apache/Nginx PHP library/framework to Build professional, High performant, Dockerized and secure Microservice APIs in minutes, not hours.
🎓
Easy
âš¡
Fast
🔒
Secure
🚀
Modern
app/api/User.php
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
Ready to Start Your Journey?
Begin with learning GEMVC and become an expert developer to build modern, secure PHP applications!
Authentication
How to Authenticate and Authorize API users and requests with built-in JWT token
Setup Authdo you need frontend for your fantasctical project?
try STCMS! Power of PHP and React under same roof!