2017 © Pedro Peláez
 

symfony-bundle seobundle

SEO manager, sitemap generator

image

alpixel/seobundle

SEO manager, sitemap generator

  • Monday, January 29, 2018
  • by gouaille
  • Repository
  • 2 Watchers
  • 0 Stars
  • 4,506 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 25 Versions
  • 1 % 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

29/01 2018

dev-master

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

SEO manager, sitemap generator

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony seo alpixel

29/01 2018

v2.2.1

2.2.1.0 https://www.alpixel.fr

SEO manager, sitemap generator

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony seo alpixel

21/12 2017

dev-hotfix/baseMetaTag

dev-hotfix/baseMetaTag https://www.alpixel.fr

SEO manager, sitemap generator

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony seo alpixel

28/09 2017

dev-release/1.x

dev-release/1.x

  Sources   Download

The Requires

 

by Benjamin HUBERT

21/06 2017

v2.2

2.2.0.0 https://www.alpixel.fr

SEO manager, sitemap generator

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony seo alpixel

17/05 2017

v2.1

2.1.0.0 https://www.alpixel.fr

SEO manager, sitemap generator

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony seo alpixel

24/08 2016

v2.0.5

2.0.5.0 https://www.alpixel.fr

SEO manager, sitemap generator

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony seo alpixel

22/08 2016

v2.0.4

2.0.4.0 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