alleyinteractive/news-sitemap-for-publishers
Composer 安装命令:
composer require alleyinteractive/news-sitemap-for-publishers
包简介
Extends WordPress' XML sitemaps feature to add a news sitemap
README 文档
README
Contributors: mboynes, alleyinteractive
Tags: news, sitemap, seo, publishers, google
Stable tag: 1.2.2
Requires at least: 5.5
Tested up to: 6.9
Requires PHP: 8.2
License: GPL v2 or later
Extends WordPress's XML sitemaps feature to add a news sitemap for Google, Yahoo, Bing, et al.
Description
Extends WordPress's XML sitemaps feature to add a news sitemap. News sitemaps are used by Google and others to surface recent news articles by publishers.
Installation
You can install the package via Composer:
composer require alleyinteractive/news-sitemap-for-publishers
Usage
Activate the plugin in WordPress and flush your rewrite rules (simply navigate to Settings → Permalinks in the WordPress admin to do so).
You can verify that the plugin is working by navigating to /wp-news-sitemap.xml on your site. You should also find a new sitemap entry in your site's robots.txt file for this URL.
Development
To set up a WordPress installation and run the plugin in a local environment, you
can use wp-env via the composer dev command:
composer dev
The command will start a local WordPress environment with the plugin activated.
Testing
Run composer test to run tests against PHPUnit and the PHP code in the plugin.
Unit testing code is written in PSR-4 format and can be found in the tests
directory.
Releasing the Plugin
The plugin uses
action-release via a
built release workflow to compile and
tag releases. Whenever a new version is detected in the root plugin's headers in
the news-sitemap-for-publishers.php file or in the composer.json file, the workflow will
automatically build the plugin and tag it with a new version. The built tag will
contain all the required front-end assets the plugin may require. This works
well for publishing to WordPress.org or for submodule-ing.
When you are ready to release a new version of the plugin, you can run
composer release to start the process of setting up a new
release. If you want to do this manually you can follow these steps:
-
Change the
Versionin thenews-sitemap-for-publishers.phpfile to a new higher-level version.- * Version: 0.0.0 + * Version: 0.0.1
-
Commit your changes and push to the repository.
-
Check the actions tab in the repository to see the progress of the release. The action will automatically create a new tag and release for the plugin. You are done!
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
This project is actively maintained by Alley Interactive. Like what you see? Come work with us.
License
The GNU General Public License (GPL) license. Please see License File for more information.
alleyinteractive/news-sitemap-for-publishers 适用场景与选型建议
alleyinteractive/news-sitemap-for-publishers 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「alleyinteractive」 「news-sitemap-for-publishers」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 alleyinteractive/news-sitemap-for-publishers 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 alleyinteractive/news-sitemap-for-publishers 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 alleyinteractive/news-sitemap-for-publishers 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Ingest external feeds and other data sources into WordPress
Restrict and control access to the REST API
Interface to manage email newsletters
A library to migrate to a new WordPress theme incrementally.
A skeleton WordPress plugin
A skeleton WordPress theme
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2025-12-31