分享一些PHP开发者实用工具(下)

论坛 期权论坛 脚本     
匿名网站用户   2020-12-19 12:58   708   0

今天继续给大家分享php开发中可能需要用到的工具或组件,需要的朋友可以点击查看效果哦~欢迎收藏分享~

美化 curl

1

2

3

4

5

$ 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 应用的代码复杂度

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

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 请求工具

1

2

3

4

5

6

7

8

9

$response = Zttp::withHeaders(['Fancy' => 'Pants'])->post($url, [

'foo' => 'bar',

'baz' => 'qux',

]);

$response->json();

// => [

// 'whatever' => 'was returned',

// ];

<点击查看>

本次的分享就到这里啦,如果你有什么更好的PHP开发工具,欢迎在评论中和大家分享哦~

轻量级且便捷的PHP IDE PhpStorm加入在线订购快捷通道!续费更有优惠,戳这里看详情>>>

转载于:https://my.oschina.net/u/3432667/blog/1475558

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:1136255
帖子:227251
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP