ibrows/simple-seo-bundle

A Symfony2 Bundle to add some SEO functionality

Installs: 6 931

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.9.2 2015-11-05 14:57 UTC

README

The IbrowsSimpleSeoBundle supports to add an for every route within additional path requirements and supports to add any metaTags to any path

Install & setup the bundle

  1. Fetch the source code

    $ php composer.phar require ibrows/simple-seo-bundle 

    Composer will install the bundle to your project's ibrows/simple-seo-bundle directory.

  2. Add the bundle to your AppKernel class

    // app/AppKernerl.php
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Ibrows\SimpleSeoBundle\IbrowsSimpleSeoBundle(),
            // ...
        );
        // ...
    }
  3. Add routing

    // app/config/routing.yml
    
    SimpleSeoBundle:
        resource: .
        type:     ibrows_router
        prefix:   /
    
  4. Generate Schema

    php app/console doctrine:schema:update  --force
    

Minimal configuration

This bundle requires Nothing !

Additional configuration

Edit default config

ibrows_simple_seo:
    entity_class: Ibrows\SimpleSeoBundle\Entity\MetaTagContent
    localized_alias: true
    add_query_string: false
    admin:
        allow_create: true
    alias:
        maxLength: 100
        separatorUnique: '-'
        separator: /
        notAllowedCharsPattern: '![^-a-z0-9_\/]+!'
        sortOrder: {  }