symfony-bundle slugify-bundle
        Provides static method to convert strings to slugs and twig filter.
    
            
                
                    
                    
                    
                    
                        
                            
    
        
        
            eschmar/slugify-bundle
            Provides static method to convert strings to slugs and twig filter.
         
     
    
        
            -  Sunday, April 24, 2016
-  by eschmar
-  Repository
-  1 Watchers
-  0 Stars
-  178 Installations
 
    
        
                            - PHP
-  0 Dependents
-  0 Suggesters
-  0 Forks
-  0 Open issues
-  2 Versions
-  0 % Grown
 
 
    
        
            
    
    
    
SlugifyBundle
Provides static method to convert strings to slugs as well as a twig filter for symfony. If you only need the static class, you'll find it here., (*1)
Install
Composer (Packagist):, (*2)
composer require eschmar/slugify-bundle ~v2.0 # Symfony Flex
composer require eschmar/slugify-bundle ~v1.0 # Symfony 2
app/Appkernel.php:, (*3)
new Eschmar\SlugifyBundle\EschmarSlugifyBundle(),
Usage
use Eschmar\SlugifyBundle\Util\Slug;
$test = Slug::ify("String to be slugified");
// results in $test == "string-to-be-slugified"
Twig Extension
{{ "String to be slugified"|slugify }}
License
MIT License, (*4)