PHPackages                             dominicwatts/clearstatic - 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. dominicwatts/clearstatic

ActiveMagento2-module[CLI &amp; Console](/categories/cli)

dominicwatts/clearstatic
========================

Console script to clear static content

1.1.1(11mo ago)25.7k3[2 PRs](https://github.com/DominicWatts/ClearStatic/pulls)1proprietaryPHPPHP &gt;=7.1.3CI passing

Since Sep 21Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/DominicWatts/ClearStatic)[ Packagist](https://packagist.org/packages/dominicwatts/clearstatic)[ RSS](/packages/dominicwatts-clearstatic/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (8)Used By (1)

Clear Static
============

[](#clear-static)

[![phpcs](https://github.com/DominicWatts/ClearStatic/workflows/phpcs/badge.svg)](https://github.com/DominicWatts/ClearStatic/workflows/phpcs/badge.svg)

[![PHPCompatibility](https://github.com/DominicWatts/ClearStatic/workflows/PHPCompatibility/badge.svg)](https://github.com/DominicWatts/ClearStatic/workflows/PHPCompatibility/badge.svg)

[![PHPStan](https://github.com/DominicWatts/ClearStatic/workflows/PHPStan/badge.svg)](https://github.com/DominicWatts/ClearStatic/workflows/PHPStan/badge.svg)

[![php-cs-fixer](https://github.com/DominicWatts/ClearStatic/workflows/php-cs-fixer/badge.svg)](https://github.com/DominicWatts/ClearStatic/workflows/php-cs-fixer/badge.svg)

Console script to clear static content. Will clear both frontend and backend static content in a single command. Ideal for pushing through knockout html changes.

Install instructions
====================

[](#install-instructions)

`composer require dominicwatts/clearstatic`

`php bin/magento setup:upgrade`

`php bin/magento setup:di:compile`

Usage instructions
==================

[](#usage-instructions)

`piximedia:clearstatic:clear [-c|--clear-static-content]`

`php bin/magento piximedia:clearstatic:clear -c`

or

`php bin/magento piximedia:clearstatic:clear --clear-static-content`

Then generate static content using standard procedure.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance61

Regular maintenance activity

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.7% 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 ~418 days

Recently: every ~391 days

Total

6

Last Release

334d ago

PHP version history (2 changes)1.0.0PHP ~5.6.0||~7.0.0||~7.1.0||~7.2.0||~7.3.0

1.0.1PHP &gt;=7.1.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/44d79495721d844614b7004c5811ff2ab7cf15c9be3544000f7ee89f3e187de3?d=identicon)[DominicPixie](/maintainers/DominicPixie)

---

Top Contributors

[![DominicWatts](https://avatars.githubusercontent.com/u/7295705?v=4)](https://github.com/DominicWatts "DominicWatts (11 commits)")[![DomPixie](https://avatars.githubusercontent.com/u/94372161?v=4)](https://github.com/DomPixie "DomPixie (6 commits)")

### Embed Badge

![Health badge](/badges/dominicwatts-clearstatic/health.svg)

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

###  Alternatives

[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[crazywhalecc/static-php-cli

Build single static PHP binary, with PHP project together, with popular extensions included.

1.8k13.9k](/packages/crazywhalecc-static-php-cli)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[madewithlove/license-checker

CLI tool to verify allowed licenses for composer dependencies

54449.8k21](/packages/madewithlove-license-checker)[shel/neos-terminal

Neos CMS Ui terminal for running Eel expressions and other commands

1441.3k](/packages/shel-neos-terminal)

PHPackages © 2026

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