Download the PHP package freezysko/composer-wp-plugin-activator without Composer

On this page you can find all versions of the php package freezysko/composer-wp-plugin-activator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package composer-wp-plugin-activator

Composer WordPress Plugin Activator

CI CodeQL Latest Version Total Downloads Conventional Commits

A Composer plugin that auto-activates Composer-installed WordPress plugins via WP-CLI on composer install / composer update — no scripts wiring, no per-request overhead, no MU-plugin tricks.

Quick start

Require the package:

Then allow the plugin to run. Composer 2.2+ blocks plugin code unless it is explicitly allowed — without this entry the package installs but does nothing:

That's it. The next composer install / composer update will activate your plugins via WP-CLI. The package self-registers — no scripts wiring needed.

For ready-to-copy composer.json setups see Bedrock, vanilla WordPress, and custom activation order.

Requirements

Configuration

All keys are optional. Add an extra.composer-wp-plugin-activator section to your composer.json:

Key Type Default Description
wp-cli string "wp" Path to the WP-CLI binary.
wp-path string | null null Value for WP-CLI's --path=. null lets WP-CLI auto-detect via wp-cli.yml.
plugins string | array "composer" "composer", "all", or an explicit ordered list of slugs. See below.
priority array [] Slugs to activate before the main plugins pass (foundational plugins like WooCommerce). See "Plugin activation order".
skip-when-wp-not-installed bool true If wp core is-installed is false, exit cleanly. Recommended for fresh installs.
verbose bool false Stream full WP-CLI output even on success.
fail-on-error bool false If true, a WP-CLI failure aborts Composer with a non-zero exit code.
allow-root bool | string "auto" --allow-root handling. "auto" adds it when running as root; true/false force it on/off.

plugins modes

Invalid plugins values fail closed. A typo such as "plugins": "everthing" is treated as "activate nothing" with a warning, preventing an unintentional wp plugin activate --all from a configuration mistake.

Plugin activation order

WordPress 6.5+ supports Requires Plugins: headers and WP-CLI enforces them, but it activates plugins alphabetically — so a dependent plugin can fail on its first pass when its dependency hasn't run yet. The package handles this in two layers:

  1. priority list (recommended for known blockers). Slugs listed in priority are activated first, in order, before the main plugins pass — use it for foundational plugins like WooCommerce that many others extend. See examples/custom-priority.md. Invalid or Composer-style (/-containing) entries are normalized or skipped with a warning.
  2. Bounded retry loop (safety net). After the main pass, any pass that activates at least one plugin triggers another, up to five total passes. A pass that activates nothing new stops the loop — remaining failures are real (missing plugin, real error).

priority is ignored when plugins is an explicit array, since the array already controls order; a warning is emitted so operators notice. A priority-pass failure does not stop the main pass, but it is surfaced as an error and preserved in the exit code, so fail-on-error: true still aborts Composer when a priority slug fails.

Bedrock integration

Works zero-config in Bedrock projects — WP-CLI auto-detects the WordPress path, so wp-path can stay null. See examples/bedrock.md.

Versioning

This package follows Semantic Versioning.

Public contract. The public API is the extra.composer-wp-plugin-activator configuration schema documented in Configuration — the keys wp-cli, wp-path, plugins, priority, skip-when-wp-not-installed, verbose, fail-on-error, allow-root — and the documented activation behavior. The PHP classes are not part of the public API: consumers configure the plugin, they do not call its code.

A deprecated config key or behavior is kept for at least one MINOR release, emitting a runtime warning, before removal in the next MAJOR. Deprecations and breaking changes are recorded in CHANGELOG.md.

Limitations

The full list of in-scope and out-of-scope attack classes for v1.0.x is in .github/SECURITY-THREAT-MODEL.md. To report a vulnerability see SECURITY.md.

Troubleshooting

Contributing

Contributions are welcome. See CONTRIBUTING.md for development setup, local checks, the contribution workflow, and an architecture overview. By participating you agree to the Code of Conduct.

License

MIT — see LICENSE.


All versions of composer-wp-plugin-activator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
composer-plugin-api Version ^2.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package freezysko/composer-wp-plugin-activator contains the following files

Loading the files please wait ...