PHPackages                             drutiny/drutiny - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. drutiny/drutiny

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

drutiny/drutiny
===============

This is a generic Drupal 7 and Drupal 8 site auditing and optional remediation tool.

3.6.0(2y ago)132122.2k↓50%60[4 PRs](https://github.com/drutiny/drutiny/pulls)17GPL-2.0-onlyPHPPHP ^8.1CI failing

Since Mar 24Pushed 2mo ago12 watchersCompare

[ Source](https://github.com/drutiny/drutiny)[ Packagist](https://packagist.org/packages/drutiny/drutiny)[ RSS](/packages/drutiny-drutiny/feed)WikiDiscussions 3.6.x Synced 1mo ago

READMEChangelog (10)Dependencies (27)Versions (84)Used By (17)

Drutiny - automated site auditing
=================================

[](#drutiny---automated-site-auditing)

[![Drutiny logo](https://github.com/drutiny/drutiny/raw/3.2.x/assets/logo.png)](https://github.com/drutiny/drutiny/raw/3.2.x/assets/logo.png)

[![CI](https://github.com/drutiny/drutiny/actions/workflows/ci.yml/badge.svg?branch=3.6.x&event=push)](https://github.com/drutiny/drutiny/actions/workflows/ci.yml)[![Latest Stable Version](https://camo.githubusercontent.com/47db9fdce76fb8b2a7dfc3226964e74fad2d385e018245274d38b75f753f68d0/68747470733a2f2f706f7365722e707567782e6f72672f64727574696e792f64727574696e792f762f737461626c65)](https://packagist.org/packages/drutiny/drutiny)[![Total Downloads](https://camo.githubusercontent.com/cb753952fe1237b9f1ce85514d804e61ae9ef24e25fa19c9227966416beebb3e/68747470733a2f2f706f7365722e707567782e6f72672f64727574696e792f64727574696e792f646f776e6c6f616473)](https://packagist.org/packages/drutiny/drutiny)[![Latest Unstable Version](https://camo.githubusercontent.com/d2714eb2d1b6077d96800a78817bb4c8e6bd05cb19d6e199eb5722a8a399eee1/68747470733a2f2f706f7365722e707567782e6f72672f64727574696e792f64727574696e792f762f756e737461626c65)](https://packagist.org/packages/drutiny/drutiny)[![License](https://camo.githubusercontent.com/6af5e4bf506302fa12ed50b3b79e732f253f6eb0c6626752afb99e9e21110eab/68747470733a2f2f706f7365722e707567782e6f72672f64727574696e792f64727574696e792f6c6963656e7365)](https://packagist.org/packages/drutiny/drutiny)

A generic Drupal site auditing and optional remediation tool.

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

[](#installation)

This repository is a baseline frame and not recommended to install by itself unless you're planning on building your own auditing tool based on top of Drutiny.

You can install Drutiny into your project with [composer](https://getcomposer.org).

```
composer require drutiny/drutiny ^3.6.0

```

Drutiny has native target support for Git and [Drush](http://docs.drush.org/en/master/). If you wish to use these types of targets, you must install the underlying software.

Usage
-----

[](#usage)

Drutiny is a command line tool that can be called from the composer vendor bin directory:

```
./vendor/bin/drutiny

```

### Finding targets to audit

[](#finding-targets-to-audit)

Drutiny has a number of connectors that allow you to discover and access "Targets" to audit. Use the `target:sources` command to learn which sources are available.

```
./vendor/bin/drutiny target:sources`

```

When supported by the target source, use the `target:list` command to list all the available targets from a given source:

```
# List all available targets through DDEV.
./vendor/bin/drutiny target:list ddev

```

### Finding policies available to run

[](#finding-policies-available-to-run)

Drutiny comes with a `policy:list` command that lists all the policies available to audit against.

```
./vendor/bin/drutiny policy:list

```

Policies provided by other packages such as [drutiny/plugin-distro-common](https://github.com/drutiny/plugin-distro-common) will also appear here, if they are installed.

### Installing Drutiny Plugins

[](#installing-drutiny-plugins)

Additional Drutiny policies, audits, profiles and commands can be installed with composer.

```
$ composer search drutiny

```

### Running an Audit

[](#running-an-audit)

An audit of a single policy can be run against a site by using `policy:audit` and passing the policy name and site target:

```
./vendor/bin/drutiny policy:audit Drupal-8:PageCacheExpiry @drupalvm.dev

```

The command above would audit the site that resolved to the `@drupalvm.dev` drush alias against the `Drupal-8:PageCacheExpiry` policy.

Some policies have parameters you can specify which can be passed in at call time. Use `policy:info` to find out more about the parameters available for a check.

```
./vendor/bin/drutiny policy:audit -p value=600 Drupal-8:PageCacheExpiry @drupalvm.dev

```

Audits are self-contained classes that are simple to read and understand. Policies are simple YAML files that determine how to use Audit classes. Therefore, Drutiny can be extended very easily to audit for your own unique requirements. Pull requests are welcome as well, please see the [contributing guide](https://drutiny.github.io/2.3.x/CONTRIBUTING/).

### Running a profile of checks

[](#running-a-profile-of-checks)

A site audit is running a collection of checks that make up a profile. This allows you to audit against a specific standard, policy or best practice. Drutiny comes with some base profiles which you can find using `profile:list`. You can run a profile with `profile:run` in a simlar format to `policy:audit`.

```
./vendor/bin/drutiny profile:run d8 @drupalvm.dev

```

Parameters can not be passed in at runtime for profiles but are instead predefined by the profile itself.

Getting help
------------

[](#getting-help)

Because this is a Symfony Console application, you have some other familiar commands:

```
./vendor/bin/drutiny help profile:run

```

In particular, if you use the `-vvv` argument, then you will see all the drush commands, and SSH commands printed to the screen.

Credits
=======

[](#credits)

- [Theodoros Ploumis](https://github.com/theodorosploumis) for [creating the logo](https://github.com/drutiny/drutiny/issues/79) for Drutiny.

###  Health Score

61

—

FairBetter than 99% of packages

Maintenance58

Moderate activity, may be stable

Popularity46

Moderate usage in the ecosystem

Community41

Growing community involvement

Maturity87

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 75.3% 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 ~37 days

Recently: every ~264 days

Total

79

Last Release

65d ago

Major Versions

1.x-dev → 2.1.x-dev2018-07-08

2.4.x-dev → 3.0.02021-06-21

PHP version history (5 changes)2.4.1PHP ^7.2

3.0.0PHP ^7.2.5

3.2.x-devPHP ^7.4 | ^8

3.6.0PHP ^8.1

3.1.x-devPHP ^7.2.5 | ^8

### Community

Maintainers

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

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

---

Top Contributors

[![fiasco](https://avatars.githubusercontent.com/u/108160?v=4)](https://github.com/fiasco "fiasco (1412 commits)")[![seanhamlin](https://avatars.githubusercontent.com/u/10605846?v=4)](https://github.com/seanhamlin "seanhamlin (328 commits)")[![bschilt](https://avatars.githubusercontent.com/u/332185?v=4)](https://github.com/bschilt "bschilt (42 commits)")[![paulkilla](https://avatars.githubusercontent.com/u/6803470?v=4)](https://github.com/paulkilla "paulkilla (17 commits)")[![omkar-pednekar](https://avatars.githubusercontent.com/u/2986614?v=4)](https://github.com/omkar-pednekar "omkar-pednekar (15 commits)")[![steveworley](https://avatars.githubusercontent.com/u/1840912?v=4)](https://github.com/steveworley "steveworley (12 commits)")[![markf3lton](https://avatars.githubusercontent.com/u/10674613?v=4)](https://github.com/markf3lton "markf3lton (5 commits)")[![theodorosploumis](https://avatars.githubusercontent.com/u/1315321?v=4)](https://github.com/theodorosploumis "theodorosploumis (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![fubarhouse](https://avatars.githubusercontent.com/u/3070264?v=4)](https://github.com/fubarhouse "fubarhouse (4 commits)")[![janusman](https://avatars.githubusercontent.com/u/630849?v=4)](https://github.com/janusman "janusman (4 commits)")[![rsau](https://avatars.githubusercontent.com/u/29110027?v=4)](https://github.com/rsau "rsau (3 commits)")[![shanefjordan](https://avatars.githubusercontent.com/u/13035015?v=4)](https://github.com/shanefjordan "shanefjordan (3 commits)")[![ghazlewood](https://avatars.githubusercontent.com/u/39541?v=4)](https://github.com/ghazlewood "ghazlewood (3 commits)")[![NigelCunningham](https://avatars.githubusercontent.com/u/107818?v=4)](https://github.com/NigelCunningham "NigelCunningham (3 commits)")[![brianreese](https://avatars.githubusercontent.com/u/5743125?v=4)](https://github.com/brianreese "brianreese (2 commits)")[![thomaslafon](https://avatars.githubusercontent.com/u/25437521?v=4)](https://github.com/thomaslafon "thomaslafon (2 commits)")[![adam-bergstein](https://avatars.githubusercontent.com/u/57235053?v=4)](https://github.com/adam-bergstein "adam-bergstein (2 commits)")[![bofrost007](https://avatars.githubusercontent.com/u/18265356?v=4)](https://github.com/bofrost007 "bofrost007 (2 commits)")[![xurizaemon](https://avatars.githubusercontent.com/u/105608?v=4)](https://github.com/xurizaemon "xurizaemon (1 commits)")

---

Tags

drupaldrupal-7drupal-8drushdrutinyphantomasphpsite-auditsymfony-consolesshdrupalAuditreportDrush

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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