PHPackages                             mediawiki/semantic-meta-tags - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mediawiki/semantic-meta-tags

ActiveMediawiki-extension

mediawiki/semantic-meta-tags
============================

An extension to Semantic Mediawiki to add meta elements with content generated from semantic annotations.

4.1.1(5mo ago)1213.6k—10%11[1 PRs](https://github.com/SemanticMediaWiki/SemanticMetaTags/pulls)GPL-2.0-or-laterPHPPHP &gt;=8.1CI failing

Since Feb 28Pushed 4mo ago9 watchersCompare

[ Source](https://github.com/SemanticMediaWiki/SemanticMetaTags)[ Packagist](https://packagist.org/packages/mediawiki/semantic-meta-tags)[ Docs](https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Meta_Tags)[ Fund](https://www.semantic-mediawiki.org/wiki/Sponsorship)[ Fund](https://opencollective.com/smw)[ RSS](/packages/mediawiki-semantic-meta-tags/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (14)Used By (0)

Semantic Meta Tags
==================

[](#semantic-meta-tags)

[![Build Status](https://camo.githubusercontent.com/b0c481e51bff6c0a586243216e9986f32a94b5bfeb17e5541ab44beb8e951553/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f53656d616e7469634d6564696157696b692f53656d616e7469634d657461546167732e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/SemanticMediaWiki/SemanticMetaTags)[![codecov](https://camo.githubusercontent.com/1b03af924a92ef743f29397f92830e3e63dab0705a153e3e2374eec1173385de/68747470733a2f2f636f6465636f762e696f2f67682f53656d616e7469634d6564696157696b692f53656d616e7469634d657461546167732f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d74635257636e4c483356)](https://codecov.io/gh/SemanticMediaWiki/SemanticMetaTags)[![Latest Stable Version](https://camo.githubusercontent.com/ce56c2d620655765f789692cad6fc511871d34cd717c0df29b21d177034cb669/68747470733a2f2f706f7365722e707567782e6f72672f6d6564696177696b692f73656d616e7469632d6d6574612d746167732f76657273696f6e2e706e67)](https://packagist.org/packages/mediawiki/semantic-meta-tags)[![Packagist download count](https://camo.githubusercontent.com/30ac5cad2a4b710e969ae85499545bf5e17f5258e3cd219edc89f78af03d3b54/68747470733a2f2f706f7365722e707567782e6f72672f6d6564696177696b692f73656d616e7469632d6d6574612d746167732f642f746f74616c2e706e67)](https://packagist.org/packages/mediawiki/semantic-meta-tags)

Semantic Meta Tags (a.k.a. SMT) is a [Semantic Mediawiki](https://github.com/SemanticMediaWiki/SemanticMediaWiki) extension to enhance the meta element of a page with content generated from semantic annotations.

This extension enables to automatically extend the HTML `` elements of a page with content generated from selected properties to create:

- Standard meta elements (e.g `meta name="keywords"`) as well as
- [Summary card](https://dev.twitter.com/cards/types/summary) and [Open Graph](http://ogp.me/) protocol tags (e.g `meta property="og:title"`)

Requirements
------------

[](#requirements)

- PHP 8.1 or later
- MediaWiki 1.39 or later
- [Semantic MediaWiki](https://github.com/SemanticMediaWiki/SemanticMediaWiki) 5.1 or later

Installation
------------

[](#installation)

The recommended way to install Semantic Meta Tags is using [Composer](http://getcomposer.org) with [MediaWiki's built-in support for Composer](https://www.mediawiki.org/wiki/Composer).

Note that the required extension Semantic MediaWiki must be installed first according to the installation instructions provided for it.

### Step 1

[](#step-1)

Change to the base directory of your MediaWiki installation. If you do not have a "composer.local.json" file yet, create one and add the following content to it:

```
{
	"require": {
		"mediawiki/semantic-meta-tags": "~4.1"
	}
}

```

If you already have a "composer.local.json" file add the following line to the end of the "require" section in your file:

```
"mediawiki/semantic-meta-tags": "~4.1"

```

Remember to add a comma to the end of the preceding line in this section.

### Step 2

[](#step-2)

Run the following command in your shell:

```
php composer.phar update --no-dev

```

Note if you have Git installed on your system add the `--prefer-source` flag to the above command.

### Step 3

[](#step-3)

Add the following line to the end of your "LocalSettings.php" file:

```
wfLoadExtension( 'SemanticMetaTags' );

```

Documentation
-------------

[](#documentation)

This [document](docs/README.md) describes features as well as necessary settings.

Contribution and support
------------------------

[](#contribution-and-support)

If you want to contribute work to the project please subscribe to the developers mailing list and have a look at the contribution guideline.

- [File an issue](https://github.com/SemanticMediaWiki/SemanticMetaTags/issues)
- [Submit a pull request](https://github.com/SemanticMediaWiki/SemanticMetaTags/pulls)
- Ask a question on [the mailing list](https://www.semantic-mediawiki.org/wiki/Mailing_list)

Tests
-----

[](#tests)

This extension provides unit and integration tests that are run by a [continues integration platform](https://travis-ci.org/SemanticMediaWiki/SemanticMetaTags)but can also be executed using `composer phpunit` from the extension base directory.

License
-------

[](#license)

[GNU General Public License, version 2 or later](https://www.gnu.org/copyleft/gpl.html).

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance74

Regular maintenance activity

Popularity36

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~327 days

Recently: every ~154 days

Total

13

Last Release

171d ago

Major Versions

1.5.0 → 2.0.02019-01-28

2.0.0 → 3.0.02020-09-26

3.1.0 → 4.0.0-beta2025-04-24

PHP version history (6 changes)1.0.0PHP &gt;=5.3.0

1.4.0PHP &gt;=5.5

1.5.0PHP &gt;=5.6

3.0.0PHP &gt;=7.1

4.0.0-betaPHP &gt;=7.4

4.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22235?v=4)[Stefan Wasilewski](/maintainers/SMW)[@smw](https://github.com/smw)

![](https://www.gravatar.com/avatar/372f9bc1233d5518b9522cb681210a8de2765a3a9bbde20138f6ad5332a411ca?d=identicon)[mwjames](/maintainers/mwjames)

---

Top Contributors

[![mwjames](https://avatars.githubusercontent.com/u/1245473?v=4)](https://github.com/mwjames "mwjames (71 commits)")[![translatewiki](https://avatars.githubusercontent.com/u/24829418?v=4)](https://github.com/translatewiki "translatewiki (54 commits)")[![kghbln](https://avatars.githubusercontent.com/u/1104078?v=4)](https://github.com/kghbln "kghbln (36 commits)")[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (18 commits)")[![thomas-topway-it](https://avatars.githubusercontent.com/u/46287689?v=4)](https://github.com/thomas-topway-it "thomas-topway-it (17 commits)")[![gesinn-it-gea](https://avatars.githubusercontent.com/u/10398316?v=4)](https://github.com/gesinn-it-gea "gesinn-it-gea (8 commits)")[![paladox](https://avatars.githubusercontent.com/u/5727000?v=4)](https://github.com/paladox "paladox (6 commits)")[![alex-mashin](https://avatars.githubusercontent.com/u/11148653?v=4)](https://github.com/alex-mashin "alex-mashin (5 commits)")[![gesinn-it-wam](https://avatars.githubusercontent.com/u/92986684?v=4)](https://github.com/gesinn-it-wam "gesinn-it-wam (5 commits)")[![jaideraf](https://avatars.githubusercontent.com/u/3636594?v=4)](https://github.com/jaideraf "jaideraf (2 commits)")[![Nikerabbit](https://avatars.githubusercontent.com/u/1109395?v=4)](https://github.com/Nikerabbit "Nikerabbit (2 commits)")[![yaronkoren](https://avatars.githubusercontent.com/u/1278687?v=4)](https://github.com/yaronkoren "yaronkoren (1 commits)")[![jhoeffler](https://avatars.githubusercontent.com/u/10155501?v=4)](https://github.com/jhoeffler "jhoeffler (1 commits)")[![kizule](https://avatars.githubusercontent.com/u/28963303?v=4)](https://github.com/kizule "kizule (1 commits)")[![legoktm](https://avatars.githubusercontent.com/u/81392?v=4)](https://github.com/legoktm "legoktm (1 commits)")[![Protonotarios](https://avatars.githubusercontent.com/u/5426751?v=4)](https://github.com/Protonotarios "Protonotarios (1 commits)")[![siebrand](https://avatars.githubusercontent.com/u/210297?v=4)](https://github.com/siebrand "siebrand (1 commits)")

---

Tags

mediawikimeta-elementsmeta-tagsmwsemanticsemantic-mediawikismtsmwmediawikiwikimeta-tagsSMWSemantic MediaWikimeta elements

### Embed Badge

![Health badge](/badges/mediawiki-semantic-meta-tags/health.svg)

```
[![Health](https://phpackages.com/badges/mediawiki-semantic-meta-tags/health.svg)](https://phpackages.com/packages/mediawiki-semantic-meta-tags)
```

###  Alternatives

[mediawiki/semantic-media-wiki

An extension to MediaWiki that lets you store and query structured data within wiki pages

586361.8k33](/packages/mediawiki-semantic-media-wiki)[mediawiki/semantic-result-formats

Provides additional result formats for queries using Semantic MediaWiki

51180.7k1](/packages/mediawiki-semantic-result-formats)[mediawiki/semantic-extra-special-properties

Provides extra special properties for Semantic MediaWiki

3074.6k1](/packages/mediawiki-semantic-extra-special-properties)[mediawiki/semantic-scribunto

A Semantic Mediawiki extension to natively support the Scribunto extension

2967.5k](/packages/mediawiki-semantic-scribunto)[mediawiki/semantic-cite

A Semantic MediaWiki extension to manage citation resources.

2310.2k1](/packages/mediawiki-semantic-cite)[mediawiki/semantic-breadcrumb-links

An extension to Semantic MediaWiki allowing to build breadcrumb links from an attributive property filter

1921.8k](/packages/mediawiki-semantic-breadcrumb-links)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
