Skip to content

friends-of-wp/wp-plugin-directory-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Friends of WP - Plugin Retriever

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

About

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

Resources

License

Stars

Watchers

Forks

Languages