承接 solidworx/burial 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

solidworx/burial

Composer 安装命令:

composer require solidworx/burial

包简介

Bury dead code in a project

README 文档

README

Bury dead code in a project using Tombs

Installation:

Phar

Download the latest Phar from https://github.com/SolidWorx/Burial/releases

Composer

Install into a project (or globally) using Composer

$ composer require solidworx/burial

# or

$ composer global require solidworx/burial

Usage

You should already have Tombs running on an environment and communicating through a socket.

NOTE: You should let Tombs run for at lease a couple of days/weeks, to ensure as much production code is hit as possible.

Run Burial against your code base, providing the Tombs socket as first argument

$ bin/bury http://127.0.0.1:8015

# or

$ php bury.phar http://127.0.0.1:8015

This will then remove all the dead code from your project (defaults to the directory where Burial is executed from).

Options

Burial takes the following parameters

Name Default Description Example
--production-path Current Working Directory Set the path of the code on production. This is used to map the production code against your local code. $ bin/bury http://127.0.0.1:8015 --production-path=/var/www/html/myapp
--ignore-dir NULL Add multiple directories to ignore (vendor is always ignored by default) $ bin/bury http://127.0.0.1:8015 --ignore-dir=var/cache --ignore-dir=app

Important

DO NOT run this directly in your production environment. It will remove code that might still be used. You should only run this on your local machine or a test environment, where you can carefully verify the changes, run unit tests and do proper testing to ensure that nothing is broken.

TODO

  • Ensure a method is not required from a trait/parent class's interface, extended class etc
  • Handle calls without a scope (E.G closures)
  • Remove dead functions (only method calls are currently supported)
  • Add tests

solidworx/burial 适用场景与选型建议

solidworx/burial 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7 次下载、GitHub Stars 达 12, 最近一次更新时间为 2019 年 07 月 18 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 solidworx/burial 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 solidworx/burial 我们能提供哪些服务?
定制开发 / 二次开发

基于 solidworx/burial 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 14
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-07-18