PHPackages                             survos/html-prettify-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. survos/html-prettify-bundle

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

survos/html-prettify-bundle
===========================

format HTML

2.0.83(6mo ago)1360MITPHPPHP ^8.4

Since Jun 2Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/survos/HtmlPrettifyBundle)[ Packagist](https://packagist.org/packages/survos/html-prettify-bundle)[ GitHub Sponsors](https://github.com/kbond)[ RSS](/packages/survos-html-prettify-bundle/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (13)Versions (805)Used By (0)

SurvosHtmlPrettifyBundle
========================

[](#survoshtmlprettifybundle)

Wrap the html-prettify javascript package in a stimulus controller. Also, provide a function for HTML indentation.

```
composer req survos/html-prettify-bundle
```

Complete Working Demo (without opening an editor)
-------------------------------------------------

[](#complete-working-demo-without-opening-an-editor)

```
symfony new PrettifyDemo --webapp && cd PrettifyDemo
composer config repositories.survos_prettify '{"type": "vcs", "url": "git@github.com:survos/HtmlPrettifyBundle.git"}'
composer req survos/html-prettify-bundle
yarn install --force
yarn encore dev
bin/console make:controller AppController
sed -i "s|/app|/|" src/Controller/AppController.php
sed -i "s|
