Download the PHP package gibilogic/slugger-bundle without Composer
On this page you can find all versions of the php package gibilogic/slugger-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download gibilogic/slugger-bundle
More information about gibilogic/slugger-bundle
Files in gibilogic/slugger-bundle
Download gibilogic/slugger-bundle
More information about gibilogic/slugger-bundle
Files in gibilogic/slugger-bundle
Vendor gibilogic
Package slugger-bundle
Short Description GiBiLogic Slugger Bundle
License MIT
Homepage http://www.gibilogic.com
Package slugger-bundle
Short Description GiBiLogic Slugger Bundle
License MIT
Homepage http://www.gibilogic.com
Please rate this library. Is it a good library?
Informations about the package slugger-bundle
GiBiLogic SluggerBundle
A small bundle that contains a ready-to-use slugger service for Symfony 2.
The slugify operation:
- Removes new lines (
\n
) and/or carriage returns (\r
) - Replaces extended characters ("æ" and "Ñ", for example) into their "plain" versions ("ae" and "n", for example)
- Converts the entire string in lower case (by using the
mb_strtolower
function) - Replaces every non-letter non-number character with a separator (defaults to
-
)
Installation
Add this bundle to the composer.json of your application with the console command:
Or, if you are using composer.phar
, use the console command:
Add the bundle to your AppKernel.php
:
Usage
Inside your Symfony 2 application, get the slugger service:
Then call its slugify
method:
You can also specify the slug character separator (defaults to -
):
All versions of slugger-bundle with dependencies
PHP Build Version
Package Version
The package gibilogic/slugger-bundle contains the following files
Loading the files please wait ....