InstalledVersions::isInstalled( string $packageName, bool $includeDevRequirements = true )

Checks whether the given package is installed


Description Description

This also returns true if the package name is provided or replaced by another package


Top ↑

Parameters Parameters

$packageName

(Required)

$includeDevRequirements

(Optional)

Default value: true


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: vendor/composer/InstalledVersions.php