定制 getdevflow/simple-seo 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

getdevflow/simple-seo

Composer 安装命令:

composer require getdevflow/simple-seo

包简介

An SEO management suite for any Devflow CMS website.

README 文档

README

Simple SEO is an SEO management suite for Devflow CMS covering on-page SEO, technical SEO, indexing, crawl management, 404 monitoring, and so much more. Simple SEO currently uses version 2.1.1 of the melbahja/seo library.

Requires Devflow Version: 2.3.2

Tested Up To: 2.3.2

Requires PHP: 8.4+

Stable Tag: 1.1.0

License: GPLv2-only

Documentation

Check out the wiki documentation on how to configure the plugin and setup your theme or layout.

Screenshots

screenshot.png

screenshot.png

screenshot.png

Features

  • Meta Tags
  • Schema (Structured Data)
  • Redirection
  • Custom SEO Route
  • Global SEO settings
  • Homepage SEO settings
  • Webmaster verification
  • Google Search Console settings and token verification endpoint
  • Google Analytics and Google Tag Manager support (Experimental)
  • Per-content/product/page SEO tabs: Analysis, Title, Social, Schema, Advanced, Redirects
  • Search preview and content analysis
  • Open Graph and Twitter/X fields
  • Runtime Robots.txt
  • 404 Monitoring
  • Pre-built schema types and custom JSON-LD field
  • Runtime-only sitemap routes, no saved sitemap files:
    • /sitemap.xml
    • /sitemap-content.xml
    • /sitemap-products.xml
    • /sitemap-news.xml
    • /sitemap-images.xml
    • /sitemap-videos.xml
  • IndexNow + Google Index Submission (automatic and manual)

Codex Installation

  1. Start a new shell session.
  2. Navigate to the root of your install, run the following command php codex plugin:install getdevflow/simple-seo.

Frontend usage

Make sure your theme or layout is structured with the needed helpers which fires certain actions:

<?php

use App\Application\Devflow;

use function App\Shared\Helpers\cms_body_open;
use function App\Shared\Helpers\cms_footer;
use function App\Shared\Helpers\cms_head;
?>
<!doctype html>
<html lang="<?=Devflow::$PHP->configContainer->string('app.language');?>">
<head>
    <meta charset="<?=Devflow::$PHP->configContainer->string('app.charset');?>">
    <?php cms_head(); ?>
</head>

<body>
    <?php cms_body_open(); ?>

    ...

    <?php cms_footer(); ?>
</body>
</html>

Overrides

If the autogenerated schema is wrong, you can use overrides for Homepage, content, product, or pages.

screenshot.png

Example: Article

{
  "@type": "Article",
  "headline": "Introducing Devflow CMS",
  "description": "A modern content management framework for PHP developers.",
  "author": {
    "@type": "Person",
    "name": "Joshua Parker"
  },
  "datePublished": "2026-06-10T10:00:00-06:00",
  "dateModified": "2026-06-10T10:00:00-06:00"
}

Example: BlogPosting

{
  "@type": "BlogPosting",
  "headline": "6 Advantages of Using Devflow",
  "description": "Why developers are choosing Devflow CMS.",
  "keywords": [
    "devflow",
    "php cms",
    "content management"
  ]
}

Example: Product

{
  "@type": "Product",
  "name": "Devflow CMS Book",
  "description": "Learn Devflow CMS from the ground up.",
  "brand": {
    "@type": "Brand",
    "name": "Devflow"
  },
  "offers": {
    "@type": "Offer",
    "price": "29.99",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock"
  }
}

Example: Local Business

{
  "@type": "LocalBusiness",
  "name": "Devflow CMS",
  "telephone": "+1-555-555-5555",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "123 Main Street",
    "addressLocality": "Colorado Springs",
    "addressRegion": "CO",
    "postalCode": "80903",
    "addressCountry": "US"
  }
}

Example: FAQ Page

{
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "What is Devflow CMS?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Devflow CMS is a developer-focused content management framework."
      }
    },
    
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes, Devflow includes built-in multisite support."
      }
    }
  ]
}

Custom SEO Routes

Custom SEO Routes allow you to define search engine metadata and structured data for routes that are not managed by Devflow CMS Pages, Content, Products, or by using a theme.

When a visitor requests a matching route, the defined metadata and schema automatically gets injected into the page.

screenshot.png

screenshot.png

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-only
  • 更新时间: 2026-06-11