Download the PHP package norsys/seo-bundle without Composer
On this page you can find all versions of the php package norsys/seo-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download norsys/seo-bundle
More information about norsys/seo-bundle
Files in norsys/seo-bundle
Package seo-bundle
Short Description Handle SEO metatags config & rendering
License MIT
Informations about the package seo-bundle
Seo Bundle
This project is a bundle to handle SEO meta/link tags configuration & rendering
Installation
Step 1: Add the repository & download the Bundle
Open a command console, enter your project directory and execute the following commands:
This command requires you to have composer
installed globally, as explained
in the installation chapter
of the Composer documentation.
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
Step 3: Configuration
Next, update your configuration adding the newly installed bundles section
The title/meta/link tags configuration is implemented on a per-route basis.
Using the bundle with minimal config
app/config/config.yml
Using the bundle with symfony translation system
Optionally, <meta>
and <title>
tags verbatims can be translated using symfony translation system, using keys.
app/config/config.yml
Translation keys are stored in a proper domain, which name is defined by the value of domain
under norsys_seo
config section.
The file as to be named <domain>
.<locale>
.<format>
and reside in src/AppBundle/Resource/translations/
directory.
Format can be one of the following: xml
,yml
,php
,ini
,xliff
or any other custom format you implemented (see Symfony Documentation for more information)
src/AppBundle/Resource/translations/seo.fr.yml
Step 4: Usage
This bundle comes up with a Twig
extension which exposes 3 functions for tag rendering:
seo_render_metas(route)
seo_render_links(route)
seo_render_title(route)
Example:
Rewrite
This bundle provide a system to rewrite urls from all requests
To configure rewrite system :
Sitemap
This bundle can expose /sitemap.xml
url for you. Just import routing.yml
in your routing configuration :
Now, you can expose each route to sitemap. Sample :
Sitemap generated:
Credits
Developped with :heart: by Norsys
License
This project is licensed under the MIT license.
All versions of seo-bundle with dependencies
twig/twig Version ^2.0.0
symfony/config Version ^3.1.0
symfony/http-kernel Version ^3.1.0
symfony/framework-bundle Version ^3.1.0
symfony/dependency-injection Version ^3.1.0
symfony/templating Version ^3.1.0
symfony/expression-language Version ^3.1.0
symfony/translation Version ^3.1.0