定制 friends-of-wp/pluginretriever 二次开发

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

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

friends-of-wp/pluginretriever

最新稳定版本:1.2.0

Composer 安装命令:

composer require friends-of-wp/pluginretriever

包简介

Small and flexible library to retrieve all plugins from the WordPress plugin directory.

README 文档

README

Scrutinizer Code Quality

This is a simple library that helps to retrieve the information of all plugins that are located in the WordPress.org plugin directory.

Installation

To install the Plugin Retriever you can use composer, clone the repository or just download the ZIP file.

composer require friends-of-wp/pluginretriever

Exporter

  • CSV - Export the plugins into a CSV file
  • Array - Export the data into a PHP array that can be used afterwards. Warning: this array can be quite big.
  • Cli status - Outputs the data to the CLI
  • Symfony console output - Outputs data to the CLI via the symfony OutputInterface.

Examples

We prepared some examples in the /example directory that are easy to understand and can be reused.

CSV

Exports the plugins into a CSV file. Warning: currently there are more than 55.000 plugins in the directory. Excel and Google Spreadsheet are not able to process such file sizes.

php example/retrieve-as-csv.php plugins.csv

Info: at the moment the retrievers are configured to fetch all plugins . if you want to change that just change the parameter in the retriever constructor or add a second parameter to the command line script with the number of pages you want to retrieve.

php example/retrieve-as-csv.php plugins.csv 10

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-04-15