Download the PHP package netresearch/composer-audit-responsibility without Composer

On this page you can find all versions of the php package netresearch/composer-audit-responsibility. 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-audit-responsibility

Composer Audit Responsibility

CI Latest Stable Version License

A Composer plugin implementing responsibility propagation for security audits.

Stops upstream/framework transitive dependency advisories from blocking your library, extension, or plugin CI — while keeping them visible in audit reports.

The Problem

Since Composer 2.9, block-insecure defaults to true, blocking any package version with a security advisory during composer update, require, or remove (and install without a lock file, which triggers dependency resolution). For library/extension developers, this means:

This affects every framework ecosystem: Drupal modules, Symfony bundles, Laravel packages, WordPress plugins, Magento modules, Shopware plugins, and more.

What People Do Today (and Why It's Bad)

1. Disable the security check entirely

This silences all advisories — including ones in your own dependencies that you can and should fix. You lose the safety net completely. A real vulnerability in a package you chose goes unnoticed.

2. Manually maintain config.audit.ignore

Every new advisory requires a manual commit to every affected repo. With dozens of extensions and frequent advisories, this becomes a constant maintenance burden. Worse: stale ignore entries accumulate and nobody reviews whether they're still needed — or whether they're now hiding a vulnerability in a package you do control.

Both approaches share the same fundamental flaw: they treat security as all-or-nothing when the real question is who is responsible for which dependency.

The Solution: Responsibility Propagation

Security responsibility follows the dependency chain:

Role Responsible For
Extension/Plugin developer Their direct dependencies
Framework team Framework's transitive dependencies
Application/Project assembler Everything (they ship the final product)

This plugin automatically detects your framework dependencies and prevents their transitive security advisories from blocking dependency resolution (composer update/require/remove). Advisories are still reported — they just don't block.

Installation

This plugin must be installed globally — it needs to be loaded before your project's dependencies are resolved.

CI Setup (GitHub Actions)

Add this step after PHP setup and before composer install:

No changes to your project's composer.json are needed.

Configuration

Automatic Detection

The plugin auto-detects your framework from the type field in composer.json:

Package Type Detected Framework
typo3-cms-extension typo3/cms-core
symfony-bundle symfony/framework-bundle, symfony/http-kernel
drupal-module drupal/core
wordpress-plugin johnpbloch/wordpress-core, roots/wordpress
magento2-module magento/framework
shopware-platform-plugin shopware/core
contao-bundle contao/core-bundle
cakephp-plugin cakephp/cakephp
neos-plugin neos/neos
flow-package neos/flow
oroplatform-bundle oro/platform
silverstripe-vendormodule silverstripe/framework
pimcore-bundle pimcore/pimcore
laravel-package laravel/framework
yii2-extension yiisoft/yii2

Explicit Configuration

For projects that use type: library or need custom upstream declarations:

Disable the Plugin per Project

If you have the plugin installed globally but want a specific extension/library to opt out (i.e., have all advisories block normally):

Note: Application projects (type: project or type: library without explicit upstream config) are never affected by this plugin — it only activates for framework-specific package types (extensions, bundles, modules, plugins). No configuration needed to exclude them.

How It Works

  1. Detection — Identifies platform/framework packages from your type or explicit config
  2. Graph analysis — Walks the dependency graph (BFS) to classify every package:
    • Direct: In your require — your responsibility
    • Platform-only: Only reachable through framework packages — framework's responsibility
    • Shared: Reachable through both your deps AND framework — your responsibility (conservative)
    • User-transitive: Only reachable through your non-framework deps — your responsibility
  3. Policy enforcement — Platform-only advisories don't block; everything else still blocks normally

The Diamond Problem

When a package is reachable through both your dependencies AND the framework:

Conservative rule: If you have ANY dependency path to a package, it's your responsibility. psr/log blocks in this case because you chose my/logging-lib which also depends on it.

Comparison with Alternatives

Approach Scope Maintenance Visibility
config.audit.ignore per advisory Per-advisory Update for every new advisory Hidden
COMPOSER_NO_SECURITY_BLOCKING=1 All deps None Hidden
This plugin Framework deps only None (auto-detected) Preserved

Requirements

License

MIT License. See LICENSE for details.

Contributing

Contributions are welcome! Please open an issue or pull request on GitHub.


All versions of composer-audit-responsibility with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
composer-plugin-api Version ^2.6
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 netresearch/composer-audit-responsibility contains the following files

Loading the files please wait ...