Framework
Kerisy - A high performance web framework written in PHP 7.x (php-fpm / libevent / swoole / reactphp / workman)
Install / Use
/learn @kerisy-php/FrameworkREADME
#Kerisy - A web framework written in PHP 7.0+
#####Kerisy use swoole http server.
web server run command : php kerisy server start
rpc server run command : php kerisy rpcserver start
job server run command : php kerisy jobserver start (first import jobs.sql)
#####use nginx http server
- add "index.php", write follow code:
<?php
require __DIR__ . '/vendor/autoload.php';
ini_set('display_errors', 1);
defined('APPLICATION_PATH') || define('APPLICATION_PATH', __DIR__ . '/application/');
defined('CONFIG_PATH') || define('CONFIG_PATH', APPLICATION_PATH . '/config/');
defined('KERISY_ENV') || define('KERISY_ENV', getenv('KERISY_ENV')?:'development');
defined('CLI_MODE') || define('CLI_MODE', PHP_SAPI === 'cli' );
$app = new \Kerisy\Core\Application\Web();
$app->webHandle();
- nginx conf
server {
listen 80;
server_name rpc.test;
root /mnt/hgfs/code/kerisy_rpc;
access_log /var/log/nginx/kerisy_rpc.access.log;
error_log /var/log/nginx/kerisy_rpc.error.log;
index index.php index.html;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
location ~ ^(.+?\.php)(/.*)?$ {
try_files $1 = 404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$1;
fastcgi_param PATH_INFO $2;
fastcgi_param HTTPS on;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
location ~ ^/(images|video|static)/ {
root /mnt/hgfs/code/kerisy_rpc;
#expires 30d;
}
}
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
