PHPackages                             clayfreeman/browser-debug-utils - 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. [CLI &amp; Console](/categories/cli)
4. /
5. clayfreeman/browser-debug-utils

ActiveProject[CLI &amp; Console](/categories/cli)

clayfreeman/browser-debug-utils
===============================

A collection of command-line utilities to aid in debugging browser engines.

1.0.0(3y ago)97MITPHPPHP &gt;=7.2

Since May 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/clayfreeman/browser-debug-utils)[ Packagist](https://packagist.org/packages/clayfreeman/browser-debug-utils)[ Docs](https://github.com/clayfreeman/browser-debug-utils)[ RSS](/packages/clayfreeman-browser-debug-utils/feed)WikiDiscussions 1.1.x Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

Browser debug utilities
=======================

[](#browser-debug-utilities)

This project contains several scripts that make the process of debugging browser engines much easier (some special cases excepted). The hallmark feature of this project is its integration with `uncss` to automate the process of removing unused CSS rules.

Overview
--------

[](#overview)

- `bdu-outline-scripts`: replaces all inline script elements with references to outline script files.
- `bdu-outline-styles`: replaces all inline style elements with references to outline style files.
- `bdu-replace-outlined-styles`: deletes all outlined styles and inserts the contents of STDIN at the top of the document.
- `bdu-prepare`: automatically runs `bdu-outline-scripts` and `bdu-outline-styles`, then pipes the output of `uncss` into `bdu-replace-outlined-styles` to remove all unused CSS rules.

Dependencies
------------

[](#dependencies)

This project requires `composer` and `npm` to be available, and both of their respective bin directories should be in your PATH environment variable. Additionally, PHP 7.2 or greater is required.

Installation
------------

[](#installation)

```
npm install -g prettier uncss
composer global require clayfreeman/browser-debug-utils
```

Usage
-----

[](#usage)

1. Create your minimum viable test case using the inspector in your favorite browser (e.g., delete all unnecessary elements and external resources).
2. Save the modified page in a way that is completely accessible offline.
3. Run the aggregate script, `bdu-prepare /path/to/index.html`, or any of the other scripts provided by this project.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

Every ~0 days

Total

3

Last Release

1133d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/182658?v=4)[Clay Freeman](/maintainers/clayfreeman)[@clayfreeman](https://github.com/clayfreeman)

---

Top Contributors

[![clayfreeman](https://avatars.githubusercontent.com/u/182658?v=4)](https://github.com/clayfreeman "clayfreeman (2 commits)")

### Embed Badge

![Health badge](/badges/clayfreeman-browser-debug-utils/health.svg)

```
[![Health](https://phpackages.com/badges/clayfreeman-browser-debug-utils/health.svg)](https://phpackages.com/packages/clayfreeman-browser-debug-utils)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.4k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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