vrana/phpshrink
Composer 安装命令:
composer require vrana/phpshrink
包简介
Remove spaces and comments from PHP code.
README 文档
README
Remove spaces and comments from PHP code.
Operations:
- remove unnecessary whitespace, change necessary whitespace to
\n - strip comments, preserve only the first doc-comment
- minify variables, e.g. in
function f($long) { return $long; }(incompatible with$GLOBALSand named arguments) - remove extra
{}, e.g. inif (true) { oneCommand(); } - remove
?><?phpand empty<?php ?> - change
?>HTML<?phptoecho 'HTML' - join consecutive echo, e.g. in
echo 'a'; echo 'b'; - strip public visibility or change it to
var
Demo: https://vrana.github.io/PhpShrink/
The main user is Adminer.
统计信息
- 总下载量: 202
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2025-04-09