Auto Composer Update
A plugin that automatically updates the composer when a WordPress plugin is updated.
by Yes We Dev · github.com/yeswedev-team/auto-composer-update
★ 1stars
2.1kcomposer installs
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/yeswedev-team/auto-composer-update/archive/refs/heads/main.zipAlso on Packagist as yeswedev/auto-composer-update:
composer require yeswedev/auto-composer-updateFrom the readme
Auto Composer Update
A plugin that uses WordPress Automatic Updater to send data to an API that updates the "composer.json", add changes and commit. It works for plugins and core.
Installation and usage
1. Install the plugin with composer :
2. Add the WPCURRENTPATH, GITREPOSITORY, GITBRANCH, UPDATEREPOSITORY (true or false) and APIUPDATEWORDPRESS environment variable, which points to the path of the WordPress project
3. In your WordPress configuration, check the presence of these lines on the environment you want
1. Config::define('AUTOMATICUPDATERDISABLED', false);
2. Config::define('FSMETHOD', 'direct');
3. Config::define('WPAUTOUPDATECORE', true);
4. Config::define('DISALLOWFILEMODS', false);
4. Ensure that all maintainers can push on the branch concerned.
5. Go to back-office and enable the plugin.
6. Wait for WordPress Automatic Updater or use CLI to trigger it : wp eval 'doaction("wpmaybeautoupdate");'
Help
When the update fail, WordPress may add a '.lock' into the wpoptions table, normally it will expire before the next trigger of the WordPress Automatic Updater, but you can also remove it manually : DELETE FROM 'wpoptions' WHERE 'optionname' LIKE '%.loc
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| 4.0.0 | Feb 29, 2024 |
| 3.0.1 | Nov 14, 2023 |
| 3.0.0 | Nov 10, 2023 |
| 2.0.2 | Nov 10, 2023 |
| 2.0.1 | Nov 8, 2023 |
| 2.0.0 | Oct 23, 2023 |
| 1.0.0 | Oct 12, 2023 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.