2017 © Pedro Peláez
 

symfony-bundle truncate-html-bundle

Symfony Truncate Html Twig Extention Bundle

image

tangoman/truncate-html-bundle

Symfony Truncate Html Twig Extention Bundle

  • Sunday, April 8, 2018
  • by Tangoman
  • Repository
  • 0 Watchers
  • 1 Stars
  • 131 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 13 % Grown

The README.md

Tangoman TruncateHtml Twig Service

Tangoman TruncateHtml Twig Service truncates html keeping tags., (*1)

How to install

With composer, (*2)

$ composer require tangoman/truncate-html-bundle

Enable the bundle

Don't forget to enable the bundle in the kernel:, (*3)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new TangoMan\TruncateHtml\TangoManTruncateHtml(),
    );
}

You don't have to add TangoMan CallbackBundle to the service.yml of your project. twig.extension.truncate_html service should load automatically., (*4)

How to use

Inside your views:, (*5)

    <p>
        {{ post.html|truncatehtml }}
    </p>

Note

If you find any bug please report here : Issues, (*6)

License

Copyright (c) 2018 Matthias Morin, (*7)

License Distributed under the MIT license., (*8)

If you like TangoMan TruncateHtml please star! And follow me on GitHub: TangoMan75 ... And check my other cool projects., (*9)

tangoman.free.fr, (*10)

The Versions

08/04 2018

dev-master

9999999-dev

Symfony Truncate Html Twig Extention Bundle

  Sources   Download

MIT GPL-3.0

The Requires

 

by Fabrice Lazzarotto
by Matthias Morin

service twig extension bundle symfony tangoman truncate html

08/04 2018

1.0.1

1.0.1.0

Symfony Truncate Html Twig Extention Bundle

  Sources   Download

MIT

The Requires

 

by Fabrice Lazzarotto
by Matthias Morin

service twig extension bundle symfony tangoman truncate html

18/08 2017

1.0.0

1.0.0.0

Symfony Truncate Html Twig Extention

  Sources   Download

GPL-3.0

The Requires

  • php >=5.3.0

 

by Fabrice Lazzarotto
by Matthias Morin

service twig extension bundle symfony tangoman truncate html