PHPackages                             janisbiz/heredoc - 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. janisbiz/heredoc

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

janisbiz/heredoc
================

A helper for outputting values to PHP heredoc

v1.0.1(6y ago)03.5k1MITPHPPHP &gt;=5.6

Since Apr 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/janisbiz/heredoc)[ Packagist](https://packagist.org/packages/janisbiz/heredoc)[ RSS](/packages/janisbiz-heredoc/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (7)Versions (4)Used By (1)

Heredoc
=======

[](#heredoc)

[![Latest Stable Version](https://camo.githubusercontent.com/63a68049a5a60e94e36e7499a72c441fd382edca670dcd19c08e140e3c2081aa/68747470733a2f2f706f7365722e707567782e6f72672f6a616e697362697a2f68657265646f632f762f737461626c65)](https://packagist.org/packages/janisbiz/heredoc)[![codecov](https://camo.githubusercontent.com/55fae425d36bdfbaef6005a61b3418aa45c9d829fae0daceaf7af032f59cf030/68747470733a2f2f636f6465636f762e696f2f67682f6a616e697362697a2f68657265646f632f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/janisbiz/heredoc)[![Build Status](https://camo.githubusercontent.com/fdda5e22b778421323786e83e006587a42561e4ad585d5d02896e1f1116aa3c6/68747470733a2f2f7472617669732d63692e636f6d2f6a616e697362697a2f68657265646f632e7376673f6272616e63683d706870352e78)](https://travis-ci.com/janisbiz/heredoc)[![Total Downloads](https://camo.githubusercontent.com/f05a61569f65be10246ce917f5af0c523e2dc58d1d3817a9596ac9db914c41dd/68747470733a2f2f706f7365722e707567782e6f72672f6a616e697362697a2f68657265646f632f646f776e6c6f616473)](https://packagist.org/packages/janisbiz/heredoc)[![Deps](https://camo.githubusercontent.com/af5f885b1dd64b141209e1c1c9c7149368cc56c5bd7922b1a17e367c89dfe197/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570656e64656e636965732d7570253230746f253230646174652d627269676874677265656e2e737667)](https://camo.githubusercontent.com/af5f885b1dd64b141209e1c1c9c7149368cc56c5bd7922b1a17e367c89dfe197/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570656e64656e636965732d7570253230746f253230646174652d627269676874677265656e2e737667)

A helper for outputting values to PHP heredoc

Installing
----------

[](#installing)

`composer require janisbiz/heredoc`

Getting started
---------------

[](#getting-started)

These instructions will help you set up this helper, so you can use it. As well, there are provided instructions to run tests for the extension.

Using extension
---------------

[](#using-extension)

To use helper:

- your class should use trait [HeredocTrait](src/HeredocTrait.php)
- you should call global function ´heredoc()´

Running tests
-------------

[](#running-tests)

There are two ways to run tests:

1. By using docker containers:
    - Copy `.env.dist` to `.env` and adjust defined values for your needs
    - Execute `docker-compose up -d --build`
    - Execute `docker-compose exec php-cli composer install`
    - Execute `docker-compose exec php-cli vendor/bin/phpunit -c phpunit.xml`
2. By using your local php and mysql database environment:
    - Ensure, that your php version is `5.6+`
    - Execute `composer install`
    - Execute `vendor/bin/phpunit -c phpunit.xml`

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

Every ~28 days

Total

2

Last Release

2541d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f85e3280bdaa81572855b1f07dd928cc6d4c1b5397fd975fb3693dc773462f7?d=identicon)[janisbiz](/maintainers/janisbiz)

---

Tags

phpheredocjanisbiz

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/janisbiz-heredoc/health.svg)

```
[![Health](https://phpackages.com/badges/janisbiz-heredoc/health.svg)](https://phpackages.com/packages/janisbiz-heredoc)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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