phpno.com
域名年龄: 14年3个月9天HTTP/1.1 500 Internal Server Error 服务器:Tengine/1.4.2 访问时间:2019年09月09日 13:16:25 类型:text/html; charset=utf-8 Transfer-Encoding: chunked 连接:keep-alive 语言环境:PHP/5.5.1 过期时间:1984年01月11日 13:00:00 修改日期:2019年09月09日 13:16:25 缓存控制:不缓存,必须更新, max-age=0 其他指令:不缓存 网站编码:utf-8
php教程博客php文件怎么打开?-phpno.com与你分享php教程首页小项目示例页面关于我有道鲜果抓虾GoogleMy Yahoo!newsgatorBloglines哪吒yaf+composer 组合与 yaf+zf组合框架对比2015年4月3日| 标签:测试1普通sql测试查询语句:$result = zf_Service::loadModel('Account')->findOne('aid=475546');$users = Account::find(475571);//$users = Account::where('aid', '=', 475547)->get();//测试更新语句zf_Service::loadModel('Account')->update(array('email'=>'a@qq.com'),"`aid`='475571'");Account::where('aid', '=', 475571)->update(array('email' => 'as@qq.com'));测试插入zf_Service::loadModel('Test')->insert($insertData);//Test::create(array('name' => 'John'));基本测试********************************************************测试类型 yaf+composer yaf+zf无sql执行 7ms 13ms查找 20ms(307ms) 20ms(136ms)更新 25ms(236ms) 22ms(151ms)插入 24ms(234ms) 25ms(126ms)注:括号里面是循环100次执行的结果,括号外面为执行1次的结果压力测试********************************************************测试类型 RPS TPR FR无sql执行 306/183 3.5/5.3 194/194有sql执行 136/140 7.2/7.1 208/198注1:斜线前面为yaf+composer结果斜线后面为yaf+zf结果注2:RPS: Requests per second(越高越好)TPR: Time per request(越低越好)FR : Failed requests(越低越好)注3:ab -n 2000 -c 100 http://192.168.8.234:7070/demo/index/testab -n 2000 -c 100 http://192.168.8.234:7071/demo/index/test成为位于192.168.8.234yaf+composer:/home/www/yafyaf+zf:/home/www/yaf-test结论:再无sql执行的页面 yaf+composer要优于yaf+zf的执行效率在有sql执行的页面yaf+composer与yaf+zf的效率相当,基本持平(但是yaf+composer管理项目可以写更少的代码)使用的技术composer(https://getcomposer.org/)yaf第三方类库orm(illuminate/database)php第三方包https://packagist.org/没有评论如何实现利用免费资源打造公有库以及私有库2015年3月31日| 标签:如何实现利用免费资源打造公有库以及私有库开发规范的包文件,并将这些包发布到github or bitbucket打招共有以及私有库开发规范的library包文件创建共有包(github)创建私有包(bitbucket)如何使用https://packagist.org/项目中引入公共包项目中引入私有包1. 如何开发规范的library包参考教程:https://packagist.org/about创建组织架构组织架构如下:irpackagist //根目录(irpackagis这个无所谓随便起)|---README.md //帮助文档|---composer.json //固定格式文件(必须)|---lib //类库包目录(一般设为src或者lib)|---Iran //目录|---Func //目录|---StringHelp.php //类库文件1|---StringHelp2.php //类库文件2编写类功能文件示例StringHelp.php如下:<?phpnamespace Iran\Func;class StringHelp{static public function dd(){echo 'dd test';}}创建composer.json文件:下面是composer.json示例:{"name": "iran/test", //包名字(必须)"type": "library" ,"description": "my first test","keywords": ["iran", "iranw"],"homepage": "http://www.phpno.com","license": "MIT","authors": [{"name": "Iran Wang", "email": "wang_wenguan@yeah.net"}],"require": {"php": ">=5.3.2"},"require-dev": {"phpunit/phpunit": ">=3.7"},"autoload": {"psr-0": { "Iran\\Func\\": "lib/" } //自动加载}}composer.json参数参考文档 https://getcomposer.org/doc/04-schema.md自此,一个标准的php包就算开发完毕^^ (装逼完成)—2. 上传到Github公有化抱着开放,开源,屌丝的气质,我们将此类包公有化。造福大众,恩泽天下(话说那个sb会用呢???)创建仓库直接登录github,web端创建
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2026-01-18 14:15, Process in 0.0086 second.