public static function setAlias()
    {
        $file = file_get_contents(self::$aliasFilePath);

        $newAliasString = str_replace(
            "'".self::$bowerVendor."'", 
            "'".self::$sourceBower."'", 
            self::$aliasBowerString
            );

        $file = str_replace(
            self::$aliasBowerString, 
            $newAliasString, 
            $file
            );

        $result = file_put_contents(self::$aliasFilePath, $file);

        if ($result) {
            
            echo "Install alias @bower done\n";
        }
    }
public static function setAlias()
    {
        $file = file_get_contents(self::$aliasFilePath);

        $newAliasString = str_replace(
            "'".self::$bowerVendor."'", 
            "'".self::$sourceBower."'", 
            self::$aliasBowerString
            );

        $file = str_replace(
            self::$aliasBowerString, 
            $newAliasString, 
            $file
            );

        $result = file_put_contents(self::$aliasFilePath, $file);

        if ($result) {
            
            echo "Install alias @bower done\n";
        }
    }
public static function setAlias ( ) { $ file = file_get_contents ( self :: $ aliasFilePath ) ; $ newAliasString = str_replace ( "'" . self :: $ bowerVendor . "'" , "'" . self :: $ sourceBower . "'" , self :: $ aliasBowerString ) ; $ file = str_replace ( self :: $ aliasBowerString , $ newAliasString , $ file ) ; $ result = file_put_contents ( self :: $ aliasFilePath , $ file ) ; if ( $ result ) { echo "Install alias @bower done\n" ; } }
Install via setting alias of Bower
Install via setting alias of Bower