1. Go to this page and download the library: Download gb-hyperf/framework library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gb-hyperf / framework example snippets
#[RequestMapping(path: '/api/admin/auth/login', methods: ['POST', 'GET'])]
public function handle(): ResponseInterface
{
return $this->success(['token' => 'admin'], '登录成功', 200);
}