vesax/seo-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (v0.3.3) of this package.

v0.3.3 2017-12-19 10:12 UTC

This package is not auto-updated.

Last update: 2021-10-30 02:57:31 UTC


README

Provides admin interface (sonata admin) for pages metadata and redirect rules.

Supports url templates and twig syntax for values.

Installation

# bash
composer require vesax/seo-bundle dev-master

# AppKernel.php
$bundles = [
   new \Vesax\SEOBundle\VesaxSEOBundle()
];
# Twig
{% set seoData = seo_load() %}
{{ seo_title(seoData) }} # render title for current page
{{ seo_meta_tags(seoData) }} # render metatags for current page
{{ seo_extra(seoData, 'my-extra-item-key') }} # get extra data for current page

Configuration (optional)

vesax_seo:
    redirects: 
      enabled: false # Redirects feature disabled by default
      not_found_only: true # Redirect listener only for NotFoundhttpException by default
    cache: my_doctrine_cache_provider_name # Cache for rules and metadata. Disabled by default