jaspervriends/flarum-seo 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jaspervriends/flarum-seo

最新稳定版本:4.0.0-beta.2

Composer 安装命令:

composer require jaspervriends/flarum-seo

包简介

Adds SEO tags for your Flarum forum

README 文档

README

MIT license Latest Stable Version Total Downloads

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

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/tags is enabled)
  • Discussion page
  • User profile
  • Pages page (if fof/pages is enabled)

Methods used:

  • HTML meta tags (application-name, description, keywords, language)
  • Open Graph tags (og:type, og:title, og:description, og:url, og:image, og:locale, and article:published_time / article:modified_time on article pages)
  • Twitter cards
  • inLanguage on every page
  • Schema.org structured data:
  • Uses the first image in the post as the social-media image when one is present, falling back to the configured default.
  • Optional indexing controls — de-index user profile pages, or whole tags (and their discussions), with noindex, follow to keep thin/low-value pages out of search results.

Your robots.txt and XML sitemap are provided by fof/sitemap. See Sitemap & robots.txt.

Works with

Compatible — but not required — alongside:

Extending

Third-party extensions have three integration points:

  • Page drivers — emit/replace structured data for your own routes by extending FoF\Seo\Extend\SEO and implementing FoF\Seo\Page\PageDriverInterface.
  • SeoMeta objects — give your own models managed, per-object metadata that appears in the Configure SEO dialog.
  • The PreparingPageMeta event — 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.

统计信息

  • 总下载量: 53
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 50
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 50
  • Watchers: 3
  • Forks: 25
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-01-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固