PHPackages                             kasparsu/prettyxml - 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. kasparsu/prettyxml

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kasparsu/prettyxml
==================

small xml prettyfier that uses no libs

036PHP

Since Mar 10Pushed 8y agoCompare

[ Source](https://github.com/Kasparsu/prettyxml)[ Packagist](https://packagist.org/packages/kasparsu/prettyxml)[ RSS](/packages/kasparsu-prettyxml/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

kasparsu/prettyxml
==================

[](#kasparsuprettyxml)

Xml prettifier that uses no libs or packages.

\####DISCLAIMER: This is in development and if you have any sense or reason you will not use this package!

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

[](#installation)

You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):

```
composer require kasparsu/prettyxml

```

If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:

```
composer require --dev kasparsu/prettyxml

```

### Usage

[](#usage)

#### Prettyfing Xml

[](#prettyfing-xml)

The `Prettyfier` class can be used to generate a formated representation of the raw XML input:

```
