vesax / seo-bundle
Installs: 37 851
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: >=5.5
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