InstalledVersions::isInstalled( string $packageName, bool $includeDevRequirements = true )
Checks whether the given package is installed
Contents
Description Description
This also returns true if the package name is provided or replaced by another package
Parameters Parameters
- $packageName
-
(Required)
- $includeDevRequirements
-
(Optional)
Default value: true
Return Return
(bool)
Source Source
File: vendor/composer/InstalledVersions.php
Expand full source code Collapse full source code View on Github