PHPackages                             happyr/excerpt-bundle - 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. happyr/excerpt-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

happyr/excerpt-bundle
=====================

A Symfony2 Bundle to make excerpts

0.1.0(11y ago)34411[6 issues](https://github.com/Happyr/ExcerptBundle/issues)MITPHPPHP &gt;=5.4

Since Jun 5Pushed 11y ago2 watchersCompare

[ Source](https://github.com/Happyr/ExcerptBundle)[ Packagist](https://packagist.org/packages/happyr/excerpt-bundle)[ Docs](http://developer.happyr.com/symfony2-bundles/excerpt-bundle)[ RSS](/packages/happyr-excerpt-bundle/feed)WikiDiscussions master Synced 6d ago

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

HappyR Excerpt Bundle
=====================

[](#happyr-excerpt-bundle)

The purpose of this is to try Hack programming language. This is not the fastest or the most elegant way of programming. But it is a good bundle to show in a demo. I wrote a blog post about this bundle on [developer.happyr.com](http://developer.happyr.com/symfony-excerpt-bundle-using-hack).

The Excerpt Bundle takes an excerpt from a HTML string. We make sure to return valid HTML and we do not break words.

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

[](#installation)

1. Install with composer:

```
composer require happyr/excerpt-bundle
```

2. Enable the bundle:

```
// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...
        new HappyR\ExcerptBundle\HappyRExcerptBundle(),
    ];
}
```

Using the Twig filter
---------------------

[](#using-the-twig-filter)

```
{{ 'Hello World Foobar!'|excerpt(17) }}
{# Hello World... #}
```

Default Configuration
---------------------

[](#default-configuration)

```
happy_r_excerpt:
    tail: '...'
    length: 300
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92% 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

4365d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/401ccc5eea13c60cf807ae982af00e368e2166e2f26d8eb541dcd881a57385bc?d=identicon)[Nyholm](/maintainers/Nyholm)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (23 commits)")[![cordoval](https://avatars.githubusercontent.com/u/328359?v=4)](https://github.com/cordoval "cordoval (2 commits)")

---

Tags

hackexcerpt

### Embed Badge

![Health badge](/badges/happyr-excerpt-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/happyr-excerpt-bundle/health.svg)](https://phpackages.com/packages/happyr-excerpt-bundle)
```

PHPackages © 2026

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