今天继续给大家分享php开发中可能需要用到的工具或组件,需要的朋友可以点击查看效果哦~欢迎收藏分享~
美化 curl
$ git clone https://github.com/talhasch/php-httpstat $ cd php-httpstat $ cp httpstat.php /usr/local/bin/httpstat $ chmod +x /usr/local/bin/httpstat $ httpstat http://www.google.com
在线正则表达式测试
在线练习 git
检测 PHP 应用的代码复杂度
composer global require 'phploc/phploc=*' $ phploc src phploc 4.0.0 by Sebastian Bergmann. Directories 3 Files 10 Size Lines of Code (LOC) 1882 Comment Lines of Code (CLOC) 255 (13.55%) Non-Comment Lines of Code (NCLOC) 1627 (86.45%) Logical Lines of Code (LLOC) 377 (20.03%) Classes 351 (93.10%) Average Class Length 35 Minimum Class Length 0 Maximum Class Length 172 Average Method Length 2 Minimum Method Length 1 Maximum Method Length 117 Functions 0 (0.00%) Average Function Length 0 Not in classes or functions 26 (6.90%)
php http 请求工具
$response = Zttp::withHeaders(['Fancy' => 'Pants'])->post($url, [ 'foo' => 'bar', 'baz' => 'qux', ]); $response->json; // => [ // 'whatever' => 'was returned', // ];
本次的分享就到这里啦,如果你有什么更好的PHP开发工具,欢迎在评论中和大家分享哦~
轻量级且便捷的PHP IDE PhpStorm加入在线订购快捷通道!续费更有优惠,戳这里看详情>>>