2017 © Pedro Peláez
 

symfony-bundle seobundle

SEO manager, sitemap generator

image

firestorm23/seobundle

SEO manager, sitemap generator

  • Sunday, July 17, 2016
  • by firestorm23
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 18 Versions
  • 0 % Grown

The README.md

SEOBundle

The SEOBundle provides a Symfony Bundle capable of handling auto generated meta tags, specific tags by route and sitemaps., (*1)

Installation

  1. Install the package
composer require 'alpixel/seobundle'
  1. Update AppKernel.php
new Alpixel\Bundle\SEOBundle\SEOBundle(),
  1. Update DB Schema
php app/console doctrine:schema:update --force --dump-sql

Meta tags annotation

There are 2 options for defining meta tags in your application :, (*2)

Static tags

Work in progress, (*3)

Dynamic tags with placholders

If you have meta tags which need to be defined from entities value, you can use the @MetaTag annotation in your controller., (*4)

    use Alpixel\Bundle\SEOBundle\Annotation\MetaTag;
    ...

    /**
     * @Route("/paupiette")
     * @MetaTag("paupiette", providerClass="My\Project\Entity\Paupiette", title="Paupiette page")
     */
    public function displayAction()
    {

After you set up the annotation, you'll need to run the following command which will register your new annotation in database., (*5)

php app/console alpixel:seo:metatag:dump

Then you will have a new entry in the back office on the "SEO" panel. You should be able to configure the meta tags pattern for the given controller., (*6)

The impacted entity should provide placeholders. First, it should implements the Alpixel\Bundle\SEOBundle\Entity\MetaTagPlaceholderInterface Then you have to implement the getPlaceholders() method in your entity. This is an example :, (*7)

use Alpixel\Bundle\SEOBundle\Entity\MetaTagPlaceholderInterface;
class News implements MetaTagPlaceholderInterface
{
    public function getPlaceholders() {
        return array(
            "[news:title]"  => $this->title,
            "[news:resume]" => substr(strip_tags($this->content), 0, 150)
        );
    }
}

The Versions

17/07 2016

dev-master

9999999-dev https://www.alpixel.fr

SEO manager, sitemap generator

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony seo alpixel

15/06 2016

v2.0.3

2.0.3.0 https://www.alpixel.fr

SEO manager, sitemap generator

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony seo alpixel

14/06 2016

v2.0.2

2.0.2.0 https://www.alpixel.fr

SEO manager, sitemap generator

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony seo alpixel

28/04 2016

v2.0.1

2.0.1.0 https://www.alpixel.fr

SEO manager, sitemap generator

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony seo alpixel

19/02 2016

v2.0

2.0.0.0 https://www.alpixel.fr

SEO manager, sitemap generator

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony seo alpixel

19/02 2016

v2.0-alpha

2.0.0.0-alpha https://www.alpixel.fr

SEO manager, sitemap generator

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony seo alpixel

29/04 2015

1.1.4

1.1.4.0

  Sources   Download

The Requires

 

by Benjamin HUBERT

16/04 2015

1.1.3

1.1.3.0

  Sources   Download

The Requires

 

by Benjamin HUBERT

15/04 2015

1.1.2

1.1.2.0

  Sources   Download

The Requires

 

by Benjamin HUBERT

15/04 2015

1.1.1

1.1.1.0

  Sources   Download

The Requires

 

by Benjamin HUBERT

15/04 2015

1.1.0

1.1.0.0

  Sources   Download

The Requires

 

by Benjamin HUBERT

15/04 2015

1.0.3

1.0.3.0

  Sources   Download

The Requires

 

by Benjamin HUBERT

15/04 2015

1.0

1.0.0.0

  Sources   Download

The Requires

 

by Benjamin HUBERT

15/04 2015

1.0.2

1.0.2.0

  Sources   Download

The Requires

 

by Benjamin HUBERT