PHPackages                             asapo/tidy-bundle - 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. asapo/tidy-bundle

ActiveTidy-bundle[Utility &amp; Helpers](/categories/utility)

asapo/tidy-bundle
=================

PHP-Tidy wrapper Bundle for Symfony 2 Projects

0.1.0(11y ago)114.6k↓44.6%[3 issues](https://github.com/wachterjohannes/AsapoTidyBundle/issues)MITCSSPHP &gt;=5.4

Since Aug 9Pushed 11y ago3 watchersCompare

[ Source](https://github.com/wachterjohannes/AsapoTidyBundle)[ Packagist](https://packagist.org/packages/asapo/tidy-bundle)[ RSS](/packages/asapo-tidy-bundle/feed)WikiDiscussions develop Synced 1mo ago

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

AsapoTidyBundle
===============

[](#asapotidybundle)

PHP-Tidy wrapper Bundle for Symfony 2 Projects

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/89f022859e0a486806ec723254760522fc0eb3e3f8ba69c897f0412d4b70dab4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f776163687465726a6f68616e6e65732f417361706f5469647942756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d646576656c6f70)](https://scrutinizer-ci.com/g/wachterjohannes/AsapoTidyBundle/?branch=develop)

Why use this Bundle?
--------------------

[](#why-use-this-bundle)

This Bundle uses [tidy-php](http://php.net/manual/de/book.tidy.php) to clean and repair responses automatically.

What tidy is?
-------------

[](#what-tidy-is)

Tidy is a binding for the Tidy HTML clean and repair utility which allows you to clean, manipulate HTML documents and traverse the document tree.

[Source ...](http://php.net/manual/de/intro.tidy.php)

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

[](#installation)

**Development version**

```
php composer.phar require asapo/tidy-bundle:dev-develop
```

**Current Release**

```
php composer.phar require asapo/tidy-bundle:0.1.*
```

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

[](#configuration)

```
asapo_tidy:
    config:               []
    encoding:             utf8
    response_listener:    true
    data_collector:       true
```

- config: tidy-php configuration [see here ...](http://tidy.sourceforge.net/docs/quickref.html)
- encoding: change encoding of parser
- response\_listener: enable or disable reponse listener (cleanup automatically reponses)
- data\_collector: enable or disable data collector to see tidy warnings / errors in profiler

Try it?
-------

[](#try-it)

You have two possibilities to trigger tidy bundle.

### Service

[](#service)

```
/** @var TidyWrapperInterface $asapoTidy */
$asapoTidy = $this->get('tidy');
$clean = $asapoTidy->cleanUp($dirty, 'your_alias');
```

### Automatically with reponse listener

[](#automatically-with-reponse-listener)

```
return $this->render('AcmeDemoBundle:Welcome:index.html.twig', array(), new TidyResponse('your_alias'));
```

or

```
return new TidyResponse('your_alias', $dirty);
```

Profiler
--------

[](#profiler)

If the data collector is enabled error or warnings can be displayed over the symfony2 profiler.

### Toolbar

[](#toolbar)

[![image](https://cloud.githubusercontent.com/assets/1464615/3867790/88dffd28-2011-11e4-9d1c-004f2bfeecdc.png)](https://cloud.githubusercontent.com/assets/1464615/3867790/88dffd28-2011-11e4-9d1c-004f2bfeecdc.png)

(green icon on the far right)

### Panel

[](#panel)

[![image](https://cloud.githubusercontent.com/assets/1464615/3867794/91f476be-2011-11e4-9620-972f6108162f.png)](https://cloud.githubusercontent.com/assets/1464615/3867794/91f476be-2011-11e4-9620-972f6108162f.png)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

4300d ago

### Community

Maintainers

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

---

Top Contributors

[![wachterjohannes](https://avatars.githubusercontent.com/u/1464615?v=4)](https://github.com/wachterjohannes "wachterjohannes (21 commits)")

---

Tags

tidy

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/asapo-tidy-bundle/health.svg)

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

###  Alternatives

[cerdic/css-tidy

CSSTidy is a CSS minifier

2092.0M6](/packages/cerdic-css-tidy)[lab1521/neaty-html

Cleans up HTML markup with Tidy

247.2k](/packages/lab1521-neaty-html)

PHPackages © 2026

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