Back to Version class

Method isCompatible

public bool
isCompatible
(string $minimum)
Compares two a "PHP standardized" version number against the current Joomla version.
Parameters
  • string $minimum The minimum version of the Joomla which is compatible.
Returns
  • bool True if the version is compatible.
Since
  • 1.0
-
  • https://www.php.net/version_compare
Class: Version
Project: Joomla

Method isCompatible - Source code

/**
 * Compares two a "PHP standardized" version number against the current Joomla version.
 *
 * @param   string  $minimum  The minimum version of the Joomla which is compatible.
 *
 * @return  boolean True if the version is compatible.
 *
 * @link    https://www.php.net/version_compare
 * @since   1.0
 */
public function isCompatible(string $minimum) : bool
{
    return version_compare(JVERSION, $minimum, 'ge');
}