hofff / contao-social-tags
Define OpenGraph/twitter cards meta data in Contao
Installs: 29 582
Dependents: 2
Suggesters: 2
Security: 0
Stars: 2
Watchers: 2
Forks: 6
Open Issues: 3
Type:contao-bundle
pkg:composer/hofff/contao-social-tags
Requires
- php: ^8.1
- ext-pdo: *
- contao/core-bundle: ^4.13 || ^5.3
- doctrine/dbal: ^3.6
- symfony/config: ^5.4 || ^6.4
- symfony/dependency-injection: ^5.4 || ^6.4
- symfony/http-foundation: ^5.4 || ^6.4
- symfony/http-kernel: ^5.4 || ^6.4
- symfony/routing: ^5.4 || ^6.4
Requires (Dev)
- contao/calendar-bundle: ^4.13 || ^5.3
- contao/faq-bundle: ^4.13 || ^5.3
- contao/manager-plugin: ^2.1
- contao/news-bundle: ^4.13 || ^5.3
- doctrine/coding-standard: ^12.0
- phpcq/runner-bootstrap: ^1.0@dev
Conflicts
- contao/manager-plugin: <2.1 || >= 3.0
This package is auto-updated.
Last update: 2025-09-27 09:29:40 UTC
README
This extension provides support for social tags (Open Graph, Twitter Cards) for Contao CMS. It supports
- pages
- news
- events
- faqs
Requirements
- Contao
^4.13 || ^5.3 - PHP
^8.1
Changelog
See CHANGELOG.md
Concepts
The goal of this extension is to provide a framework for common social tags for every entity being presented as a web page in Contao. To achieve this goal it separates the generation of the social tags into data factories and extractors.
Data factories
This extension provides an abstraction for different social tags. They can be plugged in using the
Hofff\Contao\SocialTags\Data\DataFactory interface which has to be tagged with the
Hofff\Contao\SocialTags\DataFactory tag. The data factory is responsible to generate the social meta tags for a
given object.
Extractors
The extractors have to implement the interface Hofff\Contao\SocialTags\Data\Extractor and specifics child interfaces
for the supported data factories, e.g. Hofff\Contao\SocialTags\Data\TwitterCards\TwitterCardsExtractor for twitter
cards support or Hofff\Contao\SocialTags\Data\OpenGraph\OpenGraphExtractor for open graph support. Each extractor is
tagged with the Hofff\Contao\SocialTags\Data\Extractor tag.