PHPackages                             tylerwiegand/purgecss-with-sage - 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. tylerwiegand/purgecss-with-sage

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

tylerwiegand/purgecss-with-sage
===============================

Go through the database and create a file that PurgeCSS can read with Sage 10.

1.1(6y ago)163MITPHPPHP &gt;=7.2

Since Mar 10Pushed 6y ago2 watchersCompare

[ Source](https://github.com/tylerwiegand/purgecss-with-sage)[ Packagist](https://packagist.org/packages/tylerwiegand/purgecss-with-sage)[ RSS](/packages/tylerwiegand-purgecss-with-sage/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (3)Used By (0)

PurgeCSS with Sage 10
=====================

[](#purgecss-with-sage-10)

Go through the database and create a file that PurgeCSS can read with [Sage 10](https://github.com/roots/sage). Default location is theme/resources/views/vendor/purgecss-with-sage/classes.blade.php. Configuration of output location is not available at this time.

Requirements
------------

[](#requirements)

- [Sage](https://github.com/roots/sage) &gt;= 10.0
- [PurgeCSS](https://github.com/FullHuman/purgecss) &gt;=2.0

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

[](#installation)

```
# /web/app/themes/sage

$ composer require tylerwiegand/purgecss-with-sage
```

Usage
-----

[](#usage)

```
# web/app/themes/sage

wp acorn purgecss-with-sage
```

I'd also personally recommend a .gitignore addition of the generated file in Sage's .gitignore file:

```
# web/app/themes/sage/.gitignore

/resources/views/vendor/purgecss-with-sage/classes.blade.php

```

As of 1.1 it will also search the cssClass set in a GravityForm field if the plugin is active.

Bug Reports
-----------

[](#bug-reports)

If you discover a bug in this package, please [open an issue](https://github.com/tylerwiegand/purgecss-with-sage/issues).

Contributing
------------

[](#contributing)

Contributions through PRs, issues or ideas are appreciated!

License
-------

[](#license)

PurgeCSS with Sage is provided under the [MIT License](https://github.com/tylerwiegand/purgecss-with-sage/blob/master/LICENSE.md).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

2

Last Release

2253d ago

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/tylerwiegand-purgecss-with-sage/health.svg)

```
[![Health](https://phpackages.com/badges/tylerwiegand-purgecss-with-sage/health.svg)](https://phpackages.com/packages/tylerwiegand-purgecss-with-sage)
```

PHPackages © 2026

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