2017 © Pedro Peláez
 

symfony-bundle slug-bundle

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields

image

integrated/slug-bundle

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields

  • Tuesday, August 29, 2017
  • by integrated
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2,853 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 17 Versions
  • 6 % Grown

The README.md

IntegratedSlugBundle

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields, (*1)

Requirements

  • See the require section in the composer.json

Documentation

Installation

This bundle can be installed following these steps:, (*2)

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:, (*3)

LICENSE

Contributing

Pull requests are welcome. Please see our CONTRIBUTING guide., (*4)

About

This bundle is part of the Integrated project. You can read more about this project on the Integrated for developers website., (*5)

The Versions

29/08 2017

0.7.x-dev

0.7.9999999.9999999-dev http://www.integratedfordevelopers.com

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields

  Sources   Download

MIT

The Requires

 

The Development Requires

slug integrated

29/08 2017

dev-master

9999999-dev http://www.integratedfordevelopers.com

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields

  Sources   Download

MIT

The Requires

 

The Development Requires

slug integrated

29/08 2017

0.7

0.7.0.0 http://www.integratedfordevelopers.com

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields

  Sources   Download

MIT

The Requires

 

The Development Requires

slug integrated

29/08 2017

0.4.x-dev

0.4.9999999.9999999-dev http://www.integratedfordevelopers.com

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields

  Sources   Download

MIT

The Requires

 

The Development Requires

slug integrated

11/04 2017

dev-INTEGRATED-1002

dev-INTEGRATED-1002 http://www.integratedfordevelopers.com

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields

  Sources   Download

MIT

The Requires

 

The Development Requires

slug integrated

30/03 2017

dev-INTEGRATED-1025-add-behat-phpunit-and-ph

dev-INTEGRATED-1025-add-behat-phpunit-and-ph http://www.integratedfordevelopers.com

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields

  Sources   Download

MIT

The Requires

 

The Development Requires

slug integrated

01/02 2017

0.6.x-dev

0.6.9999999.9999999-dev http://www.integratedfordevelopers.com

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields

  Sources   Download

MIT

The Requires

 

The Development Requires

slug integrated

01/02 2017

0.6

0.6.0.0 http://www.integratedfordevelopers.com

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields

  Sources   Download

MIT

The Requires

 

The Development Requires

slug integrated

01/02 2017

dev-INTEGRATED-1015-slug-is-not-generated-as

dev-INTEGRATED-1015-slug-is-not-generated-as http://www.integratedfordevelopers.com

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields

  Sources   Download

MIT

The Requires

 

The Development Requires

slug integrated

17/01 2017

dev-INTEGRATED-955

dev-INTEGRATED-955 http://www.integratedfordevelopers.com

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields

  Sources   Download

MIT

The Requires

 

The Development Requires

slug integrated

20/06 2016

0.5.x-dev

0.5.9999999.9999999-dev http://www.integratedfordevelopers.com

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields

  Sources   Download

MIT

The Requires

 

The Development Requires

slug integrated

20/06 2016

0.5

0.5.0.0 http://www.integratedfordevelopers.com

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields

  Sources   Download

MIT

The Requires

 

The Development Requires

slug integrated

29/12 2015

0.4

0.4.0.0 http://www.integratedfordevelopers.com

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields

  Sources   Download

MIT

The Requires

 

The Development Requires

slug integrated

17/09 2015

0.3

0.3.0.0 http://www.e-active.nl

Integrated Slug Bundle

  Sources   Download

MIT

The Requires

 

slug integrated

17/09 2015

dev-INTEGRATED-508-slug-fails-with-double-du

dev-INTEGRATED-508-slug-fails-with-double-du http://www.e-active.nl

Integrated Slug Bundle

  Sources   Download

MIT

The Requires

 

slug integrated

03/07 2015

dev-feature/unit-test

dev-feature/unit-test http://www.e-active.nl

Integrated Slug Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

slug integrated

20/02 2015

dev-release/0.3

dev-release/0.3 http://www.e-active.nl

Integrated Slug Bundle

  Sources   Download

MIT

The Requires

 

slug integrated