2017 © Pedro Peláez
 

symfony-bundle slugify-bundle

A Symfony2 Bundle to slugify swedish texts

image

happyr/slugify-bundle

A Symfony2 Bundle to slugify swedish texts

  • Thursday, July 10, 2014
  • by Nyholm
  • Repository
  • 1 Watchers
  • 3 Stars
  • 16,803 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 9 % Grown

The README.md

HappyR SlugifyBundle

This bundle provides integration of the URLify library into Symfony2. A slugify service and twig filter is provided. This bundle is a modified version of the ZenstruckSlugifyBundle. The ZenstruckSlugifyBundle uses the Slugify library., (*1)

Installation

  1. Install with composer:, (*2)

    php composer.phar require happyr/slugify-bundle
    
  2. Enable the bundle:, (*3)

    // app/AppKernel.php
    
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new HappyR\SlugifyBundle\HappyRSlugifyBundle(),
        );
    }
    

Using the service


$slugifier = $this->container->get('happyr.slugify.slugifier'); $text = $slugifier->slugify('Hello World!'); echo $text; //prints "hello-world"

Using the Twig filter

{{ 'Hello World!'|slugify }} {# hello-world #}

Full Default Configuration

happy_r_slugify:
    twig: false #set to true to enable twig filter

The Versions

10/07 2014

dev-master

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

A Symfony2 Bundle to slugify swedish texts

  Sources   Download

MIT

The Requires

 

The Development Requires

swedish slugify

08/05 2014

1.0.1

1.0.1.0 http://developer.happyr.se/symfony2-bundles/slugify-bundle

A Symfony2 Bundle to slugify swedish texts

  Sources   Download

MIT

The Requires

 

The Development Requires

swedish slugify

18/09 2013

0.1.0

0.1.0.0 http://developer.happyr.se

A Symfony2 Bundle to slugify swedish texts

  Sources   Download

MIT

The Requires

 

The Development Requires

swedish slugify

18/09 2013

1.0.0

1.0.0.0 http://developer.happyr.se

A Symfony2 Bundle to slugify swedish texts

  Sources   Download

MIT

The Requires

 

The Development Requires

swedish slugify