Download the PHP package unloc/composer-compatibility-enforcer without Composer

On this page you can find all versions of the php package unloc/composer-compatibility-enforcer. 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-compatibility-enforcer

Composer Compatibility Enforcer

Removes selected namespaces and classes from plugin Composer autoloaders to avoid vendor conflicts.

This is primarily useful in Bedrock projects running Roots Acorn, where multiple Composer autoloaders can introduce conflicting versions of shared libraries. For background, see the Acorn compatibility notes.

This MU plugin aims to provide a cleaner alternative to often brittle Composer patches. It does not ship with default rules; configure it via a WordPress filter.

Requirements

Installation

The package type is wordpress-muplugin, so it will automatically install to web/app/mu-plugins/ on Bedrock setups.

Configuration

This plugin ships with no default rules. Add rules via the composer_compatibility_enforcer_rules filter.

Since this is an MU plugin, the filter must be registered in code that loads before or during plugins_loaded (priority < 11). The recommended approach is a separate MU plugin file:

web/app/mu-plugins/composer-compatibility-enforcer-rules.php

Bedrock note: Files directly in mu-plugins/ are auto-loaded by WordPress. The rules file needs no loader entry — just drop it in.

Rule Array Keys

Each rule array supports:

If both namespaces and classes are empty, the rule is skipped.

Logging

Logs are written to the default PHP error log only when the composer_compatibility_enforcer_enable_logging filter returns true.

Known Offenders

Some plugins with known compatibility issues. PRs welcome!

Google for WooCommerce | wpackagist-plugin/google-listings-and-ads

Boekuwzending for Woocommerce | wpackagist-plugin/boekuwzending-for-woocommerce


All versions of composer-compatibility-enforcer with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
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 unloc/composer-compatibility-enforcer contains the following files

Loading the files please wait ...