PHPackages                             bfolliot/zf-nl2br - 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. [Search &amp; Filtering](/categories/search)
4. /
5. bfolliot/zf-nl2br

AbandonedArchivedLibrary[Search &amp; Filtering](/categories/search)

bfolliot/zf-nl2br
=================

Provides a ZF2 filter for the php nl2br function

1.0.0(11y ago)131PHPPHP &gt;=5.3.3.

Since Apr 12Pushed 11y ago1 watchersCompare

[ Source](https://github.com/bfolliot/Zf-Nl2br)[ Packagist](https://packagist.org/packages/bfolliot/zf-nl2br)[ Docs](https://github.com/BFolliot/Zf-Nl2br)[ RSS](/packages/bfolliot-zf-nl2br/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

BFolliot\\Zf-Nl2br
==================

[](#bfolliotzf-nl2br)

Provides a ZF2 filter for the php nl2br function

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

[](#installation)

`BFolliot\Zf-Nl2br` is available through composer. Add "BFolliot/Zf-Nl2br" to your composer.json list. You can specify the latest stable version of `BFolliot\Zf-Nl2br`:

```
"BFolliot\Zf-Nl2br": "1.0.*"

```

To enable the module in your `config/application.config.php` file, add an entry `BFolliot\ZfNl2br` to the list of enabled modules.

Usage
-----

[](#usage)

In your input filter configuration, add the `nl2br` filter to filter the result. An example form:

```
namespace Application\Form;

use Zend\InputFilter;
use Zend\Form\Form;

class Foo extends Form implements
    InputFilter\InputFilterProviderInterface
{
    public function __construct($name = null)
    {
        parent::__construct($name);

        $this->add(array(
            'name'    => 'text',
            'options' => array(
                'label' => 'Text'
            ),
            'attributes' => array(
                'type'  => 'textarea',
            ),
        ));
    }

    public function getInputFilterSpecification()
    {
        return array(
            'text'  => array(
                'required' => true,
                'filters'  => array(
                    array('name' => 'nl2br'),
                ),
            ),
        );
    }
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

4054d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2803754?v=4)[Bryan Folliot](/maintainers/bfolliot)[@bfolliot](https://github.com/bfolliot)

---

Top Contributors

[![bfolliot](https://avatars.githubusercontent.com/u/2803754?v=4)](https://github.com/bfolliot "bfolliot (1 commits)")

---

Tags

htmlfilterzf2nl2brbrnew line

### Embed Badge

![Health badge](/badges/bfolliot-zf-nl2br/health.svg)

```
[![Health](https://phpackages.com/badges/bfolliot-zf-nl2br/health.svg)](https://phpackages.com/packages/bfolliot-zf-nl2br)
```

###  Alternatives

[laminas/laminas-filter

Programmatically filter and normalize data and files

9528.0M150](/packages/laminas-laminas-filter)[htmlawed/htmlawed

Official htmLawed PHP library for HTML filtering

401.1M9](/packages/htmlawed-htmlawed)[stolz/laravel-html-tidy

HTML Tidy middleware for Laravel

268.7k](/packages/stolz-laravel-html-tidy)[lincanbin/white-html-filter

A lightweight php-based HTML tag and attribute whitelist filter.

1215.1k1](/packages/lincanbin-white-html-filter)[bakame/html-table

convert html table into a PHP data structure

113.0k](/packages/bakame-html-table)

PHPackages © 2026

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