Method |
Description |
|
create_default_composer_json ( string $composer_path ) : true | WP_Error |
Create a default composer.json, should one not already exist |
|
find_latest_package ( Composer\Package\PackageInterface $package, Composer\Composer $composer, string $phpVersion, boolean $minorOnly = false ) : Composer\Package\PackageInterface | null |
Given a package, this finds the latest package matching it |
|
get_community_package_by_name ( $package_name ) |
Get a community package by its name. |
|
get_community_packages ( ) : array |
Get all of the community packages. |
|
get_composer ( ) |
Get a Composer instance. |
|
get_composer_json ( ) |
Get the composer.json object |
|
get_composer_json_path ( ) |
Get the path to composer.json |
|
get_installed_package_by_name ( $package_name ) |
Get an installed package by its name. |
|
get_installed_packages ( ) |
Get the installed community packages. |
|
get_package_name_and_version_from_dir_package ( string $dir_package ) : string |
Get the name of the package from the composer.json in a directory path |
|
get_pool ( Composer\Composer $composer ) |
|
|
get_wp_cli_version_composer ( ) |
Get the WP-CLI version for composer.json |
|
is_community_package ( object $package ) : boolean |
Check whether a package is a WP-CLI community package based
on membership in our package index. |
|
is_package_installed ( $package_name ) |
Check if the package name provided is already installed. |
|
package_index ( ) : Composer\Repository\ComposerRepository |
Get the package index instance |
|
show_packages ( string $context, $packages, $assoc_args ) |
Display a set of packages |
|