Get installed core version at runtime

Quick question: How do i get the installed core version at runtime?

When developing packages for pre/post 9 versions we have to differentiate because of the newer bootstrap version that uses different markup.

thanks.

Here’s what i use to determine v8/v9:

// Get Version 9 !!!
public function isVersion9() {
     return version_compare(Config::get('concrete.version'), '9.0', '>=');
}
1 Like