PHPackages                             solidworx/burial - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. solidworx/burial

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

solidworx/burial
================

Bury dead code in a project

0.1.0(6y ago)127MITPHPPHP &gt;= 7.1

Since Jul 18Pushed 6y ago2 watchersCompare

[ Source](https://github.com/SolidWorx/Burial)[ Packagist](https://packagist.org/packages/solidworx/burial)[ RSS](/packages/solidworx-burial/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Burial
======

[](#burial)

Bury dead code in a project using [Tombs](https://github.com/krakjoe/tombs)

Installation:
-------------

[](#installation)

### Phar

[](#phar)

Download the latest Phar from

### Composer

[](#composer)

Install into a project (or globally) using Composer

```
$ composer require solidworx/burial

# or

$ composer global require solidworx/burial
```

Usage
-----

[](#usage)

You should already have [Tombs](https://github.com/krakjoe/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

[](#options)

Burial takes the following parameters

NameDefaultDescriptionExample--production-pathCurrent Working DirectorySet 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-dirNULLAdd 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
---------

[](#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
----

[](#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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2492d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b374a94bdeca7fd62b1debf578810b58c63b6bb73bb648c4d3b3876aefe05a1d?d=identicon)[pierredup](/maintainers/pierredup)

---

Top Contributors

[![pierredup](https://avatars.githubusercontent.com/u/144858?v=4)](https://github.com/pierredup "pierredup (3 commits)")

---

Tags

dead-codedead-code-eliminationdead-code-removalphptombs

### Embed Badge

![Health badge](/badges/solidworx-burial/health.svg)

```
[![Health](https://phpackages.com/badges/solidworx-burial/health.svg)](https://phpackages.com/packages/solidworx-burial)
```

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[roave/backward-compatibility-check

Tool to compare two revisions of a public API to check for BC breaks

5953.3M56](/packages/roave-backward-compatibility-check)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[ramsey/conventional-commits

A PHP library for creating and validating commit messages according to the Conventional Commits specification. Includes a CaptainHook action!

1931.2M122](/packages/ramsey-conventional-commits)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
