You are here

public function PackageManagerInterface::getRequiredPackages in Composer Manager 8

Returns the required packages.

This includes all extension requirements as well as any previously installed packages that are no longer required. The core requirements are not listed, for brevity.

Return value

array An array of packages, keyed by package name, with the following keys:

  • constraint: The imposed version constraint (e.g. '>=2.7').
  • description: Package description, if known.
  • homepage: Package homepage, if known.
  • require: Package requirements, if known.
  • required_by: An array of dependent package names. Empty if the package is no longer required.
  • version: The installed package version. Empty if the package hasn't been installed yet.
1 method overrides PackageManagerInterface::getRequiredPackages()
PackageManager::getRequiredPackages in src/PackageManager.php
Returns the required packages.

File

src/PackageManagerInterface.php, line 57

Class

PackageManagerInterface
Provides an interface for managing composer packages.

Namespace

Drupal\composer_manager

Code

public function getRequiredPackages();