friends-of-wp / pluginretriever
Small and flexible library to retrieve all plugins from the WordPress plugin directory.
Requires
- guzzlehttp/guzzle: ^7.5
This package is auto-updated.
Last update: 2024-12-23 16:08:09 UTC
README
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