代码拉取完成,页面将自动刷新
一款轻量级的PHP框架,可快速开发中小型项目
路由设置:
//设置单个路由
$lolly->route('/','index');
//设置多个路由
$lolly->routeList([
'/' => 'index',
'/user' => 'user'
]);
//直接读取route.php的配置文件
$lolly->routeConf();
模板引擎:
//输出变量的值
{{$name}}
//if语句
{{if 1 + 1 == 2}}
//else语句
{{ else }}
//elseif语句
{{elif 1 + 1 == 3 }}
//for语句
{{ for $i = 1;i < 10;i++ }}
//循环遍历
{{ loop $name($k,$v) }}
//while
{{ while true }}
//结束语句(通用)
{{ end }}
......
循环输出10个 hello world
MBP:~ mrxzx$ siege -c 100 -t 30s localhost/lolly
Transactions: 16352 hits
Availability: 99.79 %
Elapsed time: 29.78 secs
Data transferred: 3.53 MB
Response time: 0.11 secs
Transaction rate: 549.09 trans/sec
Throughput: 0.12 MB/sec
Concurrency: 60.91
Successful transactions: 16441
Failed transactions: 34
Longest transaction: 0.42
Shortest transaction: 0.01
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。