public static function isJoomlatoolsPlatform()
    {
        $manifest = realpath('./composer.json');

        if (file_exists($manifest))
        {
            $contents = file_get_contents($manifest);
            $package  = json_decode($contents);

            if (isset($package->name) && in_array($package->name, array('joomlatools/platform', 'joomlatools/joomla-platform'))) {
                return true;
            }
        }

        return false;
    }
public static function isJoomlatoolsPlatform()
    {
        $manifest = realpath('./composer.json');

        if (file_exists($manifest))
        {
            $contents = file_get_contents($manifest);
            $package  = json_decode($contents);

            if (isset($package->name) && in_array($package->name, array('joomlatools/platform', 'joomlatools/joomla-platform'))) {
                return true;
            }
        }

        return false;
    }
public static function isJoomlatoolsPlatform ( ) { $ manifest = realpath ( './composer.json' ) ; if ( file_exists ( $ manifest ) ) { $ contents = file_get_contents ( $ manifest ) ; $ package = json_decode ( $ contents ) ; if ( isset ( $ package -> name ) && in_array ( $ package -> name , array ( 'joomlatools/platform' , 'joomlatools/joomla-platform' ) ) ) { return true ; } } return false ; }
Check if the working directory has Joomlatools Platform installed

@return bool
Check if the working directory has Joomlatools Platform installed