十款PHP研发者值得关注的编码器具
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">当<span style="color: black;">咱们</span>经常都要处理诸如像手工代码测试,及<span style="color: black;">安排</span><span style="color: black;">这般</span>枯燥重复的工作时,<span style="color: black;">常常</span>会感到<span style="color: black;">懊丧</span>,然而<span style="color: black;">咱们</span><span style="color: black;">始终</span><span style="color: black;">奋斗</span>想变得<span style="color: black;">有效</span>率。而本文将向你介绍10款PHP<span style="color: black;">研发</span><span style="color: black;">工具</span>,它们能正好能<span style="color: black;">帮忙</span>你达到那样的<span style="color: black;">需求</span>,使你能有<span style="color: black;">更加多</span>时间专注于建设更优秀的网页。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1 . PHPUnit</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">测试在软件<span style="color: black;">研发</span>中是相当<span style="color: black;">要紧</span>的一环,但<span style="color: black;">非常多</span><span style="color: black;">研发</span>者都只是给予很少的时间去测试,<span style="color: black;">由于</span>这工作的确相当耗时,枯燥并且容易出错。为<span style="color: black;">认识</span>决以上问题,自动化测试<span style="color: black;">工具</span>能让<span style="color: black;">研发</span>者编写一系列测试脚本,这些脚本能容易地执行,并且<span style="color: black;">能够</span><span style="color: black;">按照</span>计划任务去执行。这些自动化测试<span style="color: black;">工具</span><span style="color: black;">一般</span><span style="color: black;">供给</span>了测试报告,里面<span style="color: black;">仔细</span>描述了每次测试的结果。PHP<span style="color: black;">研发</span>者在自动测试化方面,有一个相当不错的测试框架PHPUNIT。基于非常流行的测试驱动<span style="color: black;">研发</span><span style="color: black;">办法</span>,如xUnit,PHPUNIT<span style="color: black;">准许</span><span style="color: black;">研发</span>者<span style="color: black;">运用</span>PHP的语法去编写测试用例,<span style="color: black;">而后</span>用很简单的命令行<span style="color: black;">工具</span>去执行测试。<span style="color: black;">乃至</span>你<span style="color: black;">能够</span>将PHPUNIT与<span style="color: black;">有些</span><span style="color: black;">连续</span>集成<span style="color: black;">工具</span>如phpUnderControl整合。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2. Phing</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">随着WEB<span style="color: black;">研发</span>项目变得越来越<span style="color: black;">繁杂</span>,<span style="color: black;">研发</span>者面对一大堆部署的任务,这些任务<span style="color: black;">不仅</span>是从<span style="color: black;">研发</span>者的<span style="color: black;">设备</span>上将文件传到生产服务器上<span style="color: black;">那样</span>简单了。<span style="color: black;">例如</span>避免上传<span style="color: black;">研发</span>环境的文件,如<span style="color: black;">照片</span>模版,处理服务器指定文件的权限和参数配置,象用户名口令,以及<span style="color: black;">怎样</span>当<span style="color: black;">出现</span>变更错误时尽快恢复,这些问题都是<span style="color: black;">研发</span>者经常要碰到的。为<span style="color: black;">认识</span>决这些问题,<span style="color: black;">研发</span>者<span style="color: black;">运用</span>了专门的构建<span style="color: black;">工具</span>,它能使文件的传输过程更<span style="color: black;">有效</span>,<span style="color: black;">由于</span>它只同步传输改变过的文件。构建<span style="color: black;">工具</span><span style="color: black;">亦</span>能够很容易<span style="color: black;">按照</span><span style="color: black;">安排</span>的环境而定制。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3. GitHub</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">版本<span style="color: black;">掌控</span>能给项目带来<span style="color: black;">非常多</span>好处,<span style="color: black;">包含</span>能<span style="color: black;">创立</span>代码的实验分支,回滚不<span style="color: black;">必须</span>的变更,能查看某个文件<span style="color: black;">近期</span>被<span style="color: black;">那些</span>团队成员改动过,以及<span style="color: black;">经过</span>日志<span style="color: black;">监测</span>进度。虽然<span style="color: black;">此刻</span>有<span style="color: black;">非常多</span>开源的版本<span style="color: black;">掌控</span><span style="color: black;">工具</span>,但Git<span style="color: black;">日前</span>是我最<span style="color: black;">爱好</span>的。Git的兴起很大程度上得益于一个<span style="color: black;">供给</span>第三方托管服务的GitHub网站,它为<span style="color: black;">研发</span>者<span style="color: black;">供给</span>了一系列的托管服务。GitHub满足了<span style="color: black;">研发</span>者的<span style="color: black;">必须</span>,<span style="color: black;">乃至</span>为开源项目<span style="color: black;">供给</span>了主机托管的服务。<span style="color: black;">此刻</span><span style="color: black;">已然</span>超过一百万的托管应用在上面了,GitHub为<span style="color: black;">研发</span>者<span style="color: black;">供给</span>了极具价值的服务,让<span style="color: black;">她们</span><span style="color: black;">不消</span>花费<span style="color: black;">海量</span>金钱和时间去寻找第三方的托管服务。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4. FirePHP</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">非常多</span><span style="color: black;">研发</span>者对FireFox的插件Firebug是非常熟悉的,它能让你很容易地<span style="color: black;">检测</span>一个网页的HTML,CSS和Javascript的语法问题。<span style="color: black;">运用</span>FirePHP,你<span style="color: black;">一样</span>能用象FireBug的界面去<span style="color: black;">检测</span>PHP语法的错误和所<span style="color: black;">选取</span>的分析数据。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">5. XDebug</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">运用</span>了象PHPUNIT<span style="color: black;">这般</span>的测试<span style="color: black;">工具</span>后,能在你写完代码后<span style="color: black;">帮忙</span><span style="color: black;">捉捕</span>到错误,另一方面有时候你<span style="color: black;">必须</span><span style="color: black;">运用</span><span style="color: black;">有些</span><span style="color: black;">帮忙</span><span style="color: black;">工具</span>去<span style="color: black;">帮忙</span><span style="color: black;">认识</span>这些问题的<span style="color: black;">原由</span>。<span style="color: black;">非常多</span>PHP<span style="color: black;">研发</span>者<span style="color: black;">运用</span>一个不错的调试<span style="color: black;">工具</span>XDebug,它能<span style="color: black;">帮忙</span>你<span style="color: black;">检测</span>代码的状态,并<span style="color: black;">供给</span><span style="color: black;">工具</span>去跟踪及剖析代码性能,查看对象内容和其他功能。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">6. PHP扩展和应用库</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">尽管你自己可能认为自己的想法是很<span style="color: black;">独一</span>和特别的,但还是很大机会你正在<span style="color: black;">奋斗</span>编写的代码,之前<span style="color: black;">已然</span>有不少其他的程序员<span style="color: black;">已然</span>编写出来了。为了<span style="color: black;">帮忙</span><span style="color: black;">研发</span>者克服<span style="color: black;">这般</span>的<span style="color: black;">阻碍</span>,PHP<span style="color: black;">研发</span>者们<span style="color: black;">定时</span>贡献PHP的扩展和应用程序库,如著名的PEAR。PEAR里<span style="color: black;">包括</span>了560个包,能<span style="color: black;">供给</span>快捷的<span style="color: black;">处理</span><span style="color: black;">方法</span>,如缓存,加密,用户验证和支付处理等。你总<span style="color: black;">能够</span>在PEAR中总能找到适合你的<span style="color: black;">处理</span><span style="color: black;">方法</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">为了<span style="color: black;">帮忙</span>管理PEAR包应用,<span style="color: black;">能够</span>安装PEAR包管理<span style="color: black;">工具</span>,它<span style="color: black;">供给</span>了命令行的界面去安装、升级和删除包。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">PEAR包管理<span style="color: black;">工具</span>:<a style="color: black;">Getting and installing the PEAR package manager</a></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">7. PHP_CodeSniffer</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">正如关于编辑器的争论<span style="color: black;">同样</span>,<span style="color: black;">针对</span>编码风格的争论更具讽刺。虽然如此,PEAR提倡的编码标准看上去在PHP社区取得了一席之地,然而,你<span style="color: black;">或</span>你所在的团队依然可能不采用<span style="color: black;">这般</span>标准约定,这将<span style="color: black;">引起</span>风格不一致的代码。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">为了避免代码风格的不一致,<span style="color: black;">能够</span><span style="color: black;">思虑</span>安装PHP_CodeSniffer,它是一个很不错的PEAR包,它能分析PHP程序,JAVASCR</p>
我完全同意你的看法,期待我们能深入探讨这个问题。 大势所趋,用于讽刺一些制作目的就是为了跟风玩梗,博取眼球的作品。 说得好啊!我在外链论坛打滚这么多年,所谓阅人无数,就算没有见过猪走路,也总明白猪肉是啥味道的。
页:
[1]