PHPackages                             dallask/grumphp-prettier-task - 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. dallask/grumphp-prettier-task

ActiveLibrary

dallask/grumphp-prettier-task
=============================

A GrumPHP extension that adds Prettier support with stylelint.

1.1.0(4y ago)049.6k↓46%1MITPHP

Since Sep 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/dallask/grumphp-prettier-task)[ Packagist](https://packagist.org/packages/dallask/grumphp-prettier-task)[ RSS](/packages/dallask-grumphp-prettier-task/feed)WikiDiscussions master Synced 1mo ago

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

grumphp-prettier-task
=====================

[](#grumphp-prettier-task)

Adds a [prettier](https://prettier.io/) linting task to [GrumPHP](https://github.com/phpro/grumphp).

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

[](#installation)

Install through composer:

```
composer require --dev dallask/grumphp-prettier-task
```

Configuration
-------------

[](#configuration)

Example configuration:

```
# grumphp.yml
grumphp:
  tasks:
    prettier:
      bin: "node_modules/.bin/prettier"
      triggered_by: ["css", "scss"]
      allowed_paths:
        - /^resources\/scss/
  extensions:
    - Dallask\GrumPHPStylelintTask\Extension
```

Available options:

**bin**

*Default: null*

By default, the task will use `prettier` from your `$PATH`. Use this option to override that. You can specify a path to the prettier executable as a string, or a command to execute prettier as an array, for example, to run prettier through npx: `bin: ["npx", "prettier"]`

**triggered\_by**

*Default: \["css", "less", "scss", "sass", "pcss"\]*

Define the list of file extensions that will trigger the prettier task.

**allowed\_paths**

*Default: \[\]*

This option allows you to specify a list of regex patterns to filter the files that will be linted by the task.

**config**

*Default: null*

Specify an alternative configuration file for prettier. If not specified, will let prettier decide which configuration file will be used ([prettier.io](https://prettier.io/docs/en/cli.html)).

Changelog
---------

[](#changelog)

See [CHANGELOG.md](CHANGELOG.md).

License
-------

[](#license)

This project is licensed unded the [MIT License](LICENSE.md).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

2

Last Release

1706d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9831186bf7ab1d26dc23f995349d5c219df306ed9f9b3e02c9cb6cb276a09f22?d=identicon)[dallask](/maintainers/dallask)

---

Top Contributors

[![ievgenky](https://avatars.githubusercontent.com/u/68694560?v=4)](https://github.com/ievgenky "ievgenky (6 commits)")

### Embed Badge

![Health badge](/badges/dallask-grumphp-prettier-task/health.svg)

```
[![Health](https://phpackages.com/badges/dallask-grumphp-prettier-task/health.svg)](https://phpackages.com/packages/dallask-grumphp-prettier-task)
```

###  Alternatives

[vijaycs85/drupal-quality-checker

Setups code quality checking tools for Drupal project.

52192.3k4](/packages/vijaycs85-drupal-quality-checker)[jonmldr/grumphp-doctrine-task

This library provides Doctrine's schema validation in Symfony projects as a GrumPHP task.

1396.3k](/packages/jonmldr-grumphp-doctrine-task)

PHPackages © 2026

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