survos/html-prettify-bundle

format HTML

Maintainers

Package info

github.com/survos/HtmlPrettifyBundle

Type:symfony-bundle

pkg:composer/survos/html-prettify-bundle

Fund package maintenance!

kbond

Statistics

Installs: 353

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

2.0.83 2025-10-27 12:45 UTC

This package is auto-updated.

Last update: 2026-03-09 12:14:39 UTC


README

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)

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|<h1|{{ render_hello() }}<h1|" templates/app/index.html.twig
symfony server:start