PHPackages                             phug/dev-tool - 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. [Templating &amp; Views](/categories/templating)
4. /
5. phug/dev-tool

ActiveLibrary[Templating &amp; Views](/categories/templating)

phug/dev-tool
=============

Phug unit tests, coverage and code style tools

1.0.0(6y ago)220.2k12MITPHPPHP &gt;=5.5.0

Since Dec 27Pushed 3y ago2 watchersCompare

[ Source](https://github.com/phug-php/dev-tool)[ Packagist](https://packagist.org/packages/phug/dev-tool)[ Docs](http://phug-lang.com)[ RSS](/packages/phug-dev-tool/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (4)Versions (20)Used By (2)

Phug Dev Tool
=============

[](#phug-dev-tool)

What is Phug Dev Tool?
----------------------

[](#what-is-phug-dev-tool)

The Phug Dev Tool is a command-line utility that comes with required libraries to develop the Phug template engine.

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

[](#installation)

Install via Composer

```
composer require phug/dev-tool --dev
```

Usage
-----

[](#usage)

### Available Commands

[](#available-commands)

#### `install`

[](#install)

Updates composer and installs composer dependencies

#### `check`

[](#check)

Runs `unit-tests:run`, `code-style:check` and `coverage:check` in this order and fails as soon as one of the commands fail.

Return code is the return code of the failed command.

If `--report` is set, this command will generate code-coverage data and report it to code-climate.

#### `code-style:check`

[](#code-stylecheck)

Automatically scans code for problems regarding `PSR-2` and attempts to fix them if wanted.

This runs `phpcs` with a default config or a local config, if found.

#### `code-style:fix`

[](#code-stylefix)

Automatically fixes code-problems regarding `PSR-2`.

This runs `phpcbf` with a default config or a local config, if found.

#### `unit-tests:run`

[](#unit-testsrun)

Runs unit tests located in `./tests`.

You can pass `--coverage-text` and `--coverage-clover=` to generate code-coverage information.

#### `coverage:check`

[](#coveragecheck)

Checks existing code-coverage data and fails if a specific percentage coverage (**80%** by default) is not reached.

Accepts `--input-file=` that points to a coverage file generated by `unit-tests:run --coverage-clover=`

#### `coverage:report`

[](#coveragereport)

Reports coverage data to CodeClimate.

Accepts `--input-file=` that points to a coverage file generated by `unit-tests:run --coverage-clover=`

Security contact information
----------------------------

[](#security-contact-information)

To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 95.6% 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 ~71 days

Recently: every ~209 days

Total

16

Last Release

2365d ago

Major Versions

0.1.14 → 1.0.02019-11-24

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/75a80e0830e63c723808d021d3a1648a2643db60f4ac2e40842da05f227f956b?d=identicon)[TorbenKoehn](/maintainers/TorbenKoehn)

---

Top Contributors

[![kylekatarnls](https://avatars.githubusercontent.com/u/5966783?v=4)](https://github.com/kylekatarnls "kylekatarnls (87 commits)")[![TorbenKoehn](https://avatars.githubusercontent.com/u/1403556?v=4)](https://github.com/TorbenKoehn "TorbenKoehn (2 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (1 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

phphtmltemplatejadeviewsrenderpugphtmldev-toolspresentationdialectphug

### Embed Badge

![Health badge](/badges/phug-dev-tool/health.svg)

```
[![Health](https://phpackages.com/badges/phug-dev-tool/health.svg)](https://phpackages.com/packages/phug-dev-tool)
```

###  Alternatives

[phug/phug

Pug (ex-Jade) facade engine for PHP, HTML template engine structured by indentation

67292.2k13](/packages/phug-phug)[talesoft/tale-pug

A clean, lightweight and easy-to-use templating engine for PHP based on Pug, formerly Jade

319.4k3](/packages/talesoft-tale-pug)[talesoft/tale-jade

A clean, lightweight and easy-to-use templating engine for PHP based on Jade/Pug

8919.3k5](/packages/talesoft-tale-jade)[figdice/figdice

Template Engine, XML-centric and attribute-driven

222.4k1](/packages/figdice-figdice)

PHPackages © 2026

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