vrana/phpshrink 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 $GLOBALS and named arguments)
  • remove extra {}, e.g. in if (true) { oneCommand(); }
  • remove ?><?php and empty <?php ?>
  • change ?>HTML<?php to echo '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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2025-04-09