2017 © Pedro Peláez
 

symfony-bundle excerpt-bundle

A Symfony2 Bundle to make excerpts

image

happyr/excerpt-bundle

A Symfony2 Bundle to make excerpts

  • Thursday, November 13, 2014
  • by Nyholm
  • Repository
  • 2 Watchers
  • 3 Stars
  • 375 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 6 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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., (*1)

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

Installation

  1. Install with composer:
composer require happyr/excerpt-bundle
  1. Enable the bundle:
// app/AppKernel.php

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

Using the Twig filter

{{ '<p>Hello World Foobar!</p>'|excerpt(17) }} 
{# <p>Hello World...</p> #}

Default Configuration

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

The Versions

13/11 2014

dev-master

9999999-dev http://developer.happyr.com/symfony2-bundles/excerpt-bundle

A Symfony2 Bundle to make excerpts

  Sources   Download

MIT

The Requires

 

The Development Requires

hack excerpt

05/06 2014

0.1.0

0.1.0.0 http://developer.happyr.com/symfony2-bundles/excerpt-bundle

A Symfony2 Bundle to make excerpts

  Sources   Download

MIT

The Requires

 

The Development Requires

hack excerpt