Reference

Guide

Kirby::version()

Returns the current version number from the composer.json (Keep that up to date! :))

Kirby::version(): string|null

Return type

string|null

Exceptions

Type Description
Kirby\Exception\LogicException

if the Kirby version cannot be detected

Source code

kirby/src/Cms/App.php#L1484