# swooleNoob **Repository Path**: ffxhd/swooleNoob ## Basic Information - **Project Name**: swooleNoob - **Description**: 用于学习和探索php的框架,方便使用浏览器查看运行结果,同时方便Linux下以CLI方式测试php文件。面向对象,前后端分离。同时支持: 1、仅仅使用swoole http server;2、nginx + swoole http server ; 3、传统的nginx + (php-fpm)。 - **Primary Language**: PHP - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2019-01-06 - **Last Updated**: 2026-02-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #swoole * 不要用$_*变量,否则立即报错; * 需要让业务代码停下来,禁止exit/die, 请
throw new \Exception('中断业务代码的执行')# debug 强烈推荐:
say($variable);
say('info',$info,'where',$where,'pageSize',$pageSize);
say()的参数的个数无限的,就像 javaScript 的 console.log();
say()会告诉你,你在哪边调用了它。
如果在linux 终端下,输出是五彩缤纷的。

# 要求:
* php 7.4
* 为了热更新,本地开发需要php的inotify扩展; 建议安装文本转语音的软件:apt-get install espeak,测试:
espeak "php is best"
* 为了会话,本地和远程服务器需要安装redis,需要php的redis扩展。
* 为了本地开发时,能够在windows编辑linux虚拟机中的文件,请在virtualbox配置仅主机(host-only)网卡(不连接wifi也能本地开发),
安装samba服务, 然后sudo service smbd start