There is no license information available for the latest version (0.1.3) of this package.

Allows management of page title, meta description and meta keywords.

Installs: 592

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 0


0.1.3 2013-04-24 11:30 UTC

This package is not auto-updated.

Last update: 2021-01-04 11:57:31 UTC


Allows management of page title, meta description and meta keywords.


Step 1: Add to composer.json

"require" :  {
    // ...

Step 2: Enable the bundle

Enable the bundle in the kernel:

// app/AppKernel.php

public function registerBundles()
    $bundles = array(
        // ...
        new Astina\Bundle\SeoBundle\AstinaSeoBundle(),

Step 3: Load routing config

Add routing if you want to be able to edit page meta data directly.

    resource: "@AstinaSeoBundle/Resources/config/routing.yml"

Warning: make sure to protect this URL in your app/config/security.yml


Place {{ seo_meta_tags(app.request) }} in your Twig template where you want the meta tags to be rendered.


     * @param \Symfony\Component\HttpFoundation\Request $request
     * @param string $defaultTitle
     * @param array $defaults
     * @param string $titleSuffix
     * @return string
    public function renderPageMetaTags(Request $request, $defaultTitle = null, array $defaults = array(), $titleSuffix = null)

The function tries to find a PageMetaData entity for the current request and uses it to render the meta tags.

Global Defaults

Configure global default values for title, description and keywords if needed:

# app/config.yml
        title: "Foo App"
        description: "The greatest and bestest app in the internet"
        keywords: "greatest, bestest"

@todo: UI to create/delete PageMetaData entitites.