WP Manifestindependent plugin directory
manifest / updates / auto-composer-update

Auto Composer Update WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

A plugin that automatically updates the composer when a WordPress plugin is updated.

★ 1stars
2.1kcomposer installs
4.0.0latest · 2 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/yeswedev-team/auto-composer-update/archive/refs/heads/main.zip

On Packagist as yeswedev/auto-composer-update:

composer require yeswedev/auto-composer-update
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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 :
{
      "type": "package",
      "package": {
        "name": "yeswedev-team/auto-composer-update",
        "version": "3.0.0",
        "type": "wordpress-plugin",
        "dist": {
          "type": "zip",
          "url": "https://github.com/yeswedev-team/auto-composer-update/archive/refs/tags/{%VERSION}.zip"
        },
        "require": {
          "guzzlehttp/guzzle": "^7.8"
        }
      }
}
  1. Add the WP_CURRENT_PATH, GIT_REPOSITORY, GIT_BRANCH, UPDATE_REPOSITORY (true or false) and API_UPDATE_WORDPRESS environment variable, which points to the path of the WordPress project
  2. In your WordPress configuration, check the presence of these lines on the environment you want
    1. Config::define('AUTOMATIC_UPDATER_DISABLED', false);
    2. Config::define('FS_METHOD', 'direct');
    3. Config::define('WP_AUTO_UPDATE_CORE', true);
    4. Config::define('DISALLOW_FILE_MODS', false);
  3. Ensure that all maintainers can push on the branch concerned.
  4. Go to back-office and enable the plugin.
  5. Wait for WordPress Automatic Updater or use CLI to trigger it : wp eval 'do_action("wp_maybe_auto_update");'

Help

When the update fail, WordPress may add a '.lock' into the wp_options table, normally it will expire before the next trigger of the WordPress Automatic Updater, but you can also remove it manually : DELETE FROM 'wp_options' WHERE 'option_name' LIKE '%.lock%'; to be sure.

Releases

7 releases.

Tag
Published
4.0.0 latest
Feb 29, 2024 2 years ago
Nov 14, 2023 2 years ago
Nov 10, 2023 2 years ago
Nov 10, 2023 2 years ago
Nov 8, 2023 2 years ago
Oct 23, 2023 3 years ago
Oct 12, 2023 3 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Auto Composer Update 3.0.1 · audited by WP Registry

No security issues found.

Audited release
3.0.1
Findings
none
Worst severity
—
Content hash
7f5b1b4f153cec7afac8e5c7…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.