DevToolsPluginInterface

Interface
extends PluginInterface

Defines DevTools-specific Composer plugin conventions.

Table of Contents

Constants

 = ['_complete', 'about', 'archive', 'audit', 'browse', 'bump', 'cc', 'check-platform-reqs', 'clear-cache', 'clearcache', 'completion', 'config', 'create-project', 'depends', 'diagnose', 'dump-autoload', 'dumpautoload', 'exec', 'fund', 'global', 'help', 'home', 'i', 'info', 'init', 'install', 'licenses', 'list', 'outdated', 'prohibits', 'r', 'reinstall', 'remove', 'repo', 'repository', 'require', 'rm', 'run', 'run-script', 'search', 'self-update', 'selfupdate', 'show', 'status', 'suggests', 'u', 'uninstall', 'update', 'upgrade', 'validate', 'why', 'why-not']

Methods

isRegisteredCommand()

Detects whether a command name or alias is already registered in Composer's command surface.

 : bool
Constants

Constants

COMPOSER_COMMAND_NAMES

Public
public array<int, string> COMPOSER_COMMAND_NAMES = ['_complete', 'about', 'archive', 'audit', 'browse', 'bump', 'cc', 'check-platform-reqs', 'clear-cache', 'clearcache', 'completion', 'config', 'create-project', 'depends', 'diagnose', 'dump-autoload', 'dumpautoload', 'exec', 'fund', 'global', 'help', 'home', 'i', 'info', 'init', 'install', 'licenses', 'list', 'outdated', 'prohibits', 'r', 'reinstall', 'remove', 'repo', 'repository', 'require', 'rm', 'run', 'run-script', 'search', 'self-update', 'selfupdate', 'show', 'status', 'suggests', 'u', 'uninstall', 'update', 'upgrade', 'validate', 'why', 'why-not']

Description

composer command names and aliases that DevTools MUST NOT override

Methods

isRegisteredCommand()

Public

Detects whether a command name or alias is already registered in Composer's command surface.

public isRegisteredCommand( string|null  $name) : bool
Parameters
$name : string|null

Description

the command name or alias being evaluated

Return values
bool