PHPackages                             sadovnik/ph - 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. sadovnik/ph

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

sadovnik/ph
===========

Heredoc alternative for text.

1.0.0(9y ago)09MITPHPPHP &gt;=5.6

Since Dec 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/sadovnik/ph)[ Packagist](https://packagist.org/packages/sadovnik/ph)[ RSS](/packages/sadovnik-ph/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

pretty heredoc
==============

[](#pretty-heredoc)

[![Build Status](https://camo.githubusercontent.com/55316483ef449e8adbae4f937a7c3bca7eab9797a6ec9a7facb8c021b33cf619/68747470733a2f2f7472617669732d63692e6f72672f7361646f766e696b2f70682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sadovnik/ph)[![Code Climate](https://camo.githubusercontent.com/74fd175a6e797a7311632be9fa22e08e76436afd49c685843b80201c8c75ad64/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7361646f766e696b2f70682f6261646765732f6770612e737667)](https://codeclimate.com/github/sadovnik/ph)[![Test Coverage](https://camo.githubusercontent.com/724fb976c41ef7cad70d5ed20a0351af625e49cd2080639446291a3771a92ee3/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7361646f766e696b2f70682f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/sadovnik/ph/coverage)[![Issue Count](https://camo.githubusercontent.com/52d64ed0903d7da2838344a88080407c6802cb1bbf5bdb9b1b5630caf07895c8/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7361646f766e696b2f70682f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/sadovnik/ph)

It's painful to write heredocs in the middle of some indentation level:

```
class CliApp
{
    public static function printUsage()
    {
        echo
