Download the PHP package integrated/slug-bundle without Composer
On this page you can find all versions of the php package integrated/slug-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download integrated/slug-bundle
More information about integrated/slug-bundle
Files in integrated/slug-bundle
Download integrated/slug-bundle
More information about integrated/slug-bundle
Files in integrated/slug-bundle
Vendor integrated
Package slug-bundle
Short Description Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields
License MIT
Homepage http://www.integratedfordevelopers.com
Package slug-bundle
Short Description Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields
License MIT
Homepage http://www.integratedfordevelopers.com
Keywords slugIntegrated
Please rate this library. Is it a good library?
Informations about the package slug-bundle
IntegratedSlugBundle
Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields
Requirements
- See the require section in the composer.json
Documentation
Installation
This bundle can be installed following these steps:
Install using composer
$ php composer.phar require integrated/slug-bundle:~0.3
Enable the bundle
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Integrated\Bundle\SlugBundle\IntegratedSlugBundle()
// ...
);
}
Example
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
use Integrated\Bundle\SlugBundle\Mapping\Annotations\Slug;
class Article
{
/**
* @var string
* @ODM\String
*/
protected $title;
/**
* @var string
* @ODM\String
* @Slug(fields={"title"})
*/
protected $slug;
...
}
Multiple fields
@Slug(fields={"title", "anotherField"})
Custom seperator
@Slug(fields={"title"}, seperator="_")
Custom method to generate slug
@Slug(fields={"getSlug"})
License
This bundle is under the MIT license. See the complete license in the bundle:
LICENSE
Contributing
Pull requests are welcome. Please see our CONTRIBUTING guide.
About
This bundle is part of the Integrated project. You can read more about this project on the Integrated for developers website.
All versions of slug-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
symfony/polyfill-iconv Version ~1.0
symfony/symfony Version ~2.8 || ~3.0
jms/metadata Version ~1.5
symfony/polyfill-iconv Version ~1.0
symfony/symfony Version ~2.8 || ~3.0
jms/metadata Version ~1.5
The package integrated/slug-bundle contains the following files
Loading the files please wait ....