fof / seo
Adds SEO tags for your Flarum forum
Fund package maintenance!
Requires
- php: ^8.2
- ext-json: *
- flarum/core: ^1.8.0
Requires (Dev)
- flarum/likes: ^1.8
- flarum/phpstan: ^1.0
- flarum/tags: ^1.8
- flarum/testing: ^1.0.0
- fof/best-answer: ^1.7
- fof/discussion-language: *
- fof/discussion-views: *
- fof/pages: ^1.0
Suggests
- fof/discussion-language: Sets per-discussion inLanguage in structured data for multi-language forums.
- fof/discussion-views: Adds a view-count interaction statistic to discussion structured data.
- fof/sitemap: Provides sitemap and robots.txt functionality.
Conflicts
Replaces
- 3.0.0
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0
- 1.x-dev
- v1.8.1
- v1.8.0
- v1.7.2
- v1.7.1
- v1.7.0
- v1.6.2
- v1.6.1
- v1.6.0
- 1.5.1
- 1.5.0
- 1.4
- 1.3.1
- 1.3
- 1.2.1
- 1.2
- 1.1
- 1.0.2
- 1.0.1
- 1.0
- 0.4-beta
- 0.3-beta
- 0.2-beta
- 0.1-beta
- dev-im/62-noindex-profiles
- dev-im/protocol-relative-images-72
- dev-im/qna-child-tags-108
- dev-im/website-schema-name-115
- dev-im/dofollow-rel-113
- dev-im/seo-regression-tests
- dev-dependabot/npm_and_yarn/js/babel/helpers-7.29.2
- dev-dependabot/npm_and_yarn/js/babel/runtime-7.29.2
- dev-dependabot/npm_and_yarn/js/webpack-5.106.2
- dev-dependabot/npm_and_yarn/js/multi-0d13b2d87f
- dev-dependabot/npm_and_yarn/js/ajv-6.14.0
- dev-dev
This package is auto-updated.
Last update: 2026-06-05 21:37:03 UTC
README
A Flarum extension that adds SEO tags to your forum — meta description, Open Graph, Twitter cards, and schema.org structured data.
Documentation
Full documentation lives in the docs/ folder:
- Installation
- Features & configuration
- Per-item SEO (the Configure SEO dialog)
- Do-follow link list
- Sitemap & robots.txt
- Developers: SeoMeta objects · the
SeoPropertiesclass - Contributing
Installation
composer require fof/seo:"*"
Updating
composer update fof/seo php flarum cache:clear
Migrating from v17development/flarum-seo
This extension was transferred to FriendsOfFlarum and was previously published as v17development/flarum-seo. The FriendsOfFlarum line begins at 3.0.0, continuing the version history (the previous package reached 2.0.9).
For forum admins, migration is a one-line change — swap the package, keep your settings and stored SEO data:
composer remove v17development/flarum-seo composer require fof/seo php flarum cache:clear
fof/seo declares replace: { "v17development/flarum-seo": "*" }, so anything that depended on the old package is satisfied by the new one, and the two can never be installed at once. Existing v17development/flarum-seo releases (≤ 2.0.9) remain installable from Packagist for anyone not yet ready to switch.
Third-party extension authors should update any references from the V17Development\FlarumSeo namespace to FoF\Seo, and from the v17development-seo frontend module to fof-seo. See the developer documentation.
Features
SEO tags are generated for the following pages:
- Home page
- Tags page (if
flarum/tagsis enabled) - Discussion page
- User profile
- Pages page (if
fof/pagesis enabled)
Methods used:
- HTML meta tags (
application-name,description,keywords,language) - Open Graph tags (
og:type,og:title,og:description,og:url,article:published_time,article:updated_time) - Twitter cards
inLanguageon every page- Schema.org structured data:
- WebPage + WebSite
SearchAction - DiscussionForumPosting — with
headline,textand comment/like/view interactionStatistics - QAPage for Q&A discussions (with
fof/best-answer) - CollectionPage — with an
ItemListof the tag's discussions - ProfilePage — with a rich
Person(identity + activity stats)
- WebPage + WebSite
- Uses the first image in the post as the social-media image when one is present, falling back to the configured default.
Your
robots.txtand XML sitemap are provided by fof/sitemap. See Sitemap & robots.txt.
Works with
Compatible — but not required — alongside:
- flarum/likes — like counts in the interaction statistics
- flarum/tags
- fof/best-answer — Q&A (
QAPage) structured data - fof/sitemap — sitemap & robots.txt
- fof/pages
- fof/discussion-views — view counts in the structured data
- fof/discussion-language — per-discussion
inLanguagefor multi-language forums
Extending
Third-party extensions have three integration points:
- Page drivers — emit/replace structured data for your own routes by extending
FoF\Seo\Extend\SEOand implementingFoF\Seo\Page\PageDriverInterface. SeoMetaobjects — give your own models managed, per-object metadata that appears in the Configure SEO dialog.- The
PreparingPageMetaevent — intercept and override the prepared metadata (language, description, any schema.org property) on any page.
See the developer guides for details:
Credits
This extension was originally created and maintained by V17 Development as v17development/flarum-seo. FriendsOfFlarum is grateful for their work bringing SEO support to the Flarum ecosystem and continues development with their blessing.
Links
License
This extension is licensed under the MIT License. See the LICENSE.md file for details.