Downloads
Everything Grav
Download Grav
Grav Core is the base package with core functionality and a few essential starting pages. Grav Core + Admin also includes the Administration Panel plugin. Both are easy to get started with — check out our Basic Tutorial and Guide to the Administration Panel.
Latest stable release
Production-ready. The version we recommend for every new site and every upgrade of an existing one.
Get Started
1
Quick installation
- Download either the Grav Core or Grav Core + Admin2 plugin installation package.
- Extract the zip file into your webroot.
- Point your browser at your local webserver:
http://yoursite.com
2
How to install the Admin2 plugin
If you have not already installed the admin plugin, you can do so easily with GPM:
$
This will install the admin plugin plus its dependencies (api & login). After this is complete, point your browser to your Grav installation and you will be prompted to create a new admin user.
Changelog
v2.2.33
Latest
1 day ago
-
- Added PHP 8.6 compatibility (while keeping PHP 8.3+ support): replaced deprecated
spl_object_hash()calls withspl_object_id(), replacedis_a()on possible strings withinstanceof ArrayAccess, guardedparse_str()andUri::pathExists()against NUL-byteValueErrorexceptions, handledpreg_grep()andCollator::asort()error fallbacks, normalizedPage::taxonomy()input beforearray_walk(), and cleaned up remaining PHP 8.5+ deprecations (finfo_close(),Reflection*::setAccessible(),case ...;, null array offset inJob, andimagedestroy()in tests) - Faster page rendering on large sites: navigation menus work out the current page's parents once per request instead of once per menu item, and
active()/activeChild()and absolute URLs look up a single route instead of loading every route from the lazy page index - Sorting a collection no longer encodes every page's metadata as JSON to build its cache key, which took about 1 ms per sort on a 2,000-page blog
dateRangeandtype/typescollection filters read page dates and templates from the page index instead of loading every page in the collection (20–25% faster on a 2,000-page blog)- The Redis and Memcached cache drivers share one connection per request instead of opening one for each cache
- Smaller savings: linked CSS/JS pipeline bundles aren't read from disk on every request, the summary-divider regex only runs when the content has a divider, and
Collection::isFirst()/isLast()no longer copy the item list
- Added PHP 8.6 compatibility (while keeping PHP 8.3+ support): replaced deprecated
-
- A
media://(or other stream) image in a folder whose name starts with a number, such as a2022/09upload folder, rendered with a broken//media:2022//09/...address. Images with resize or crop actions and HTML<img>tags in content were affected too #4417 Utils::replaceLastOccurrence()no longer cuts in the wrong place when the text has multibyte characters before the match (/blog/über-uns.jsoncame out as/blog/über-uns.)Uri::post()with a filter no longer logs a PHP deprecation on every call. It compared against the deprecatedFILTER_SANITIZE_STRINGconstant, which PHP 9 removes- Removed a call to
ArrayAdapter::setNamespace(), which doesn't exist in Symfony Cache 7, from thearraycache driver, plus a few smaller static-analysis cleanups Grav\Framework\Psr7\ServerRequest,Grav\Framework\Logger\Processors\UserProcessorandGrav\Framework\Cache\Adapter\SessionCacheload again. Their method signatures no longer matched PSR-7 2.0, Monolog 3 and Grav's cache base class, so PHP stopped with a fatal error on first use- The Flex relationship classes no longer log PHP deprecations when they load
FlexIndex::findFirst()andreduce()return a result instead of always returningnullbin/gpm selfupgradeno longer callsstrftime(), which is deprecated and removed in PHP 9- Removed the unused
Scheduler\SchedulerControllerclass, which pointed to a scheduler class that no longer exists, and the scheduler service's setup for ascheduler.modern.enabledoption that called methods that were gone. The scheduler sets up its own queue, workers and history fromscheduler.modern - Replaced deprecated library calls (Cron
factory(), Monolog level constants, DoctrinegetOrderings(),utf8_encode()) and removed compatibility branches for Twig 1/2 and PHP 7 that could no longer run, plus an unused Monolog 1/2 shim - Object collection filtering (
ObjectExpressionVisitor) no longer extends Doctrine'sClosureExpressionVisitor, which Doctrine marks final and may lock in a future major version. It builds on Doctrine's abstractExpressionVisitorand handles AND/OR/NOT itself, with the same results
- A
v2.2.32 4 days ago
-
- Images referenced through a stream such as
media://now get asrcsetfrom their@2x/@3xsiblings, the same as page media admin2#222 - The Template select on a page's Advanced tab in classic admin follows the "Hide page types" and "Hide module types" settings, and keeps a page's own template when it is hidden admin#2244
- Images referenced through a stream such as
v2.2.31 6 days ago
v2.2.30 1 week ago
-
- Added Maltese (
mt, Malti) to the language codes #4408
- Added Maltese (
-
- A scheduler run started from the admin on a host where PHP's
proc_openis disabled skips the command jobs it can't start instead of recording them as failed, and still runs the jobs that call PHP, such as backups.Scheduler::canRun($job)tells the two apart #4397 - Retina images up to
@10xare grouped with their base image again, as on 1.7, instead of@5xand higher showing up as separate media. Missing steps are still only generated up to@4x, and deleting the base image no longer removes files above the limit that are listed on their own admin2#214 - A
summary:setting left empty inuser/config/site.yaml, such as one whose lines are all commented out, no longer stops page summaries with an "Undefined array key" error (seen on simplesearch results). Summaries fall back to the shipped settings instead simplesearch#211
- A scheduler run started from the admin on a host where PHP's
v2.2.29 2 weeks ago
-
- Log files in
logs/now rotate when they reach 10 MB:grav.logbecomesgrav.log.1, older copies are gzipped (grav.log.2.gzand on), and five are kept.grav.log,security.logandscheduler.logrotate as they are written, an hourlylog-rotatescheduler job catches plugin logs, andbin/grav logrotateruns it by hand. Change or turn it off undersystem.log.rotate(Configuration → System → Error handler) - A page can unpublish everything below it along with itself. Set
cascade_unpublish: trueon a page (Options → "Unpublish child pages too"), and while that page is unpublished, bypublished: falseor by itspublish_date/unpublish_date, every page below it is unpublished too: left out of menus, collections, the sitemap and search, and not served. The pages below keep their ownpublishedsetting, so they are back as they were once the parent is published again, and a section given apublish_dategoes live all at once.system.pages.cascade_unpublish(Configuration → System → Content) sets the default for every page, and is off.$page->unpublishedBy()returns the route of the page that hides a page
- Log files in
-
- A backup profile's Scheduled Backup switch now decides on its own whether the backup runs. An old Enabled or Disabled entry for the backup job in
user/config/scheduler.yaml, which classic admin wrote whenever its Scheduler page was saved, used to override it, so backups could stop with the switch on #4397 - A scheduler job that fails now keeps what it printed to standard output as well as its error output, so the reason shows in the job's history,
user/data/scheduler/status.yamland the output file. Most console commands print their errors to standard output, so a failed run used to be recorded with no output at all - A page with a link or image whose address is longer than any file path, such as an inline image written as
/data:image/png;base64,..., no longer turns into an error page on servers withopen_basedirset - Several Grav sites on one server no longer try to load each other's files. The class loader's APCu cache is now kept separate for each site, so a class found in one site's
vendor/folder is never looked up at another site's path #4392 - The Page IDs option and the GFM and table Markdown options in Configuration → System use translation keys instead of English written into the blueprint, so they can be translated. The English comes from Admin2 2.2.13 and Admin 1.10.63
- A backup profile's Scheduled Backup switch now decides on its own whether the backup runs. An old Enabled or Disabled entry for the backup job in
v2.2.28 2 weeks ago
-
Browser::isHuman()no longer counts link-preview fetchers (such asfacebookexternalhit, which loads a page each time a shared link or ad is shown), AI fetchers (ChatGPT-User,ClaudeBot,PerplexityBotand others), uptime and monitoring services, and headless or auditing tools like HeadlessChrome and Lighthouse as people, so page statistics stop counting requests nobody made. Facebook's and Instagram's in-app browsers are real visitors and stay human
v2.2.33
Latest
1 day ago
-
- Added PHP 8.6 compatibility (while keeping PHP 8.3+ support): replaced deprecated
spl_object_hash()calls withspl_object_id(), replacedis_a()on possible strings withinstanceof ArrayAccess, guardedparse_str()andUri::pathExists()against NUL-byteValueErrorexceptions, handledpreg_grep()andCollator::asort()error fallbacks, normalizedPage::taxonomy()input beforearray_walk(), and cleaned up remaining PHP 8.5+ deprecations (finfo_close(),Reflection*::setAccessible(),case ...;, null array offset inJob, andimagedestroy()in tests) - Faster page rendering on large sites: navigation menus work out the current page's parents once per request instead of once per menu item, and
active()/activeChild()and absolute URLs look up a single route instead of loading every route from the lazy page index - Sorting a collection no longer encodes every page's metadata as JSON to build its cache key, which took about 1 ms per sort on a 2,000-page blog
dateRangeandtype/typescollection filters read page dates and templates from the page index instead of loading every page in the collection (20–25% faster on a 2,000-page blog)- The Redis and Memcached cache drivers share one connection per request instead of opening one for each cache
- Smaller savings: linked CSS/JS pipeline bundles aren't read from disk on every request, the summary-divider regex only runs when the content has a divider, and
Collection::isFirst()/isLast()no longer copy the item list
- Added PHP 8.6 compatibility (while keeping PHP 8.3+ support): replaced deprecated
-
- A
media://(or other stream) image in a folder whose name starts with a number, such as a2022/09upload folder, rendered with a broken//media:2022//09/...address. Images with resize or crop actions and HTML<img>tags in content were affected too #4417 Utils::replaceLastOccurrence()no longer cuts in the wrong place when the text has multibyte characters before the match (/blog/über-uns.jsoncame out as/blog/über-uns.)Uri::post()with a filter no longer logs a PHP deprecation on every call. It compared against the deprecatedFILTER_SANITIZE_STRINGconstant, which PHP 9 removes- Removed a call to
ArrayAdapter::setNamespace(), which doesn't exist in Symfony Cache 7, from thearraycache driver, plus a few smaller static-analysis cleanups Grav\Framework\Psr7\ServerRequest,Grav\Framework\Logger\Processors\UserProcessorandGrav\Framework\Cache\Adapter\SessionCacheload again. Their method signatures no longer matched PSR-7 2.0, Monolog 3 and Grav's cache base class, so PHP stopped with a fatal error on first use- The Flex relationship classes no longer log PHP deprecations when they load
FlexIndex::findFirst()andreduce()return a result instead of always returningnullbin/gpm selfupgradeno longer callsstrftime(), which is deprecated and removed in PHP 9- Removed the unused
Scheduler\SchedulerControllerclass, which pointed to a scheduler class that no longer exists, and the scheduler service's setup for ascheduler.modern.enabledoption that called methods that were gone. The scheduler sets up its own queue, workers and history fromscheduler.modern - Replaced deprecated library calls (Cron
factory(), Monolog level constants, DoctrinegetOrderings(),utf8_encode()) and removed compatibility branches for Twig 1/2 and PHP 7 that could no longer run, plus an unused Monolog 1/2 shim - Object collection filtering (
ObjectExpressionVisitor) no longer extends Doctrine'sClosureExpressionVisitor, which Doctrine marks final and may lock in a future major version. It builds on Doctrine's abstractExpressionVisitorand handles AND/OR/NOT itself, with the same results
- A
v2.2.32 4 days ago
-
- Images referenced through a stream such as
media://now get asrcsetfrom their@2x/@3xsiblings, the same as page media admin2#222 - The Template select on a page's Advanced tab in classic admin follows the "Hide page types" and "Hide module types" settings, and keeps a page's own template when it is hidden admin#2244
- Images referenced through a stream such as
v2.2.31 6 days ago
v2.2.30 1 week ago
-
- Added Maltese (
mt, Malti) to the language codes #4408
- Added Maltese (
-
- A scheduler run started from the admin on a host where PHP's
proc_openis disabled skips the command jobs it can't start instead of recording them as failed, and still runs the jobs that call PHP, such as backups.Scheduler::canRun($job)tells the two apart #4397 - Retina images up to
@10xare grouped with their base image again, as on 1.7, instead of@5xand higher showing up as separate media. Missing steps are still only generated up to@4x, and deleting the base image no longer removes files above the limit that are listed on their own admin2#214 - A
summary:setting left empty inuser/config/site.yaml, such as one whose lines are all commented out, no longer stops page summaries with an "Undefined array key" error (seen on simplesearch results). Summaries fall back to the shipped settings instead simplesearch#211
- A scheduler run started from the admin on a host where PHP's
v2.2.29 2 weeks ago
-
- Log files in
logs/now rotate when they reach 10 MB:grav.logbecomesgrav.log.1, older copies are gzipped (grav.log.2.gzand on), and five are kept.grav.log,security.logandscheduler.logrotate as they are written, an hourlylog-rotatescheduler job catches plugin logs, andbin/grav logrotateruns it by hand. Change or turn it off undersystem.log.rotate(Configuration → System → Error handler) - A page can unpublish everything below it along with itself. Set
cascade_unpublish: trueon a page (Options → "Unpublish child pages too"), and while that page is unpublished, bypublished: falseor by itspublish_date/unpublish_date, every page below it is unpublished too: left out of menus, collections, the sitemap and search, and not served. The pages below keep their ownpublishedsetting, so they are back as they were once the parent is published again, and a section given apublish_dategoes live all at once.system.pages.cascade_unpublish(Configuration → System → Content) sets the default for every page, and is off.$page->unpublishedBy()returns the route of the page that hides a page
- Log files in
-
- A backup profile's Scheduled Backup switch now decides on its own whether the backup runs. An old Enabled or Disabled entry for the backup job in
user/config/scheduler.yaml, which classic admin wrote whenever its Scheduler page was saved, used to override it, so backups could stop with the switch on #4397 - A scheduler job that fails now keeps what it printed to standard output as well as its error output, so the reason shows in the job's history,
user/data/scheduler/status.yamland the output file. Most console commands print their errors to standard output, so a failed run used to be recorded with no output at all - A page with a link or image whose address is longer than any file path, such as an inline image written as
/data:image/png;base64,..., no longer turns into an error page on servers withopen_basedirset - Several Grav sites on one server no longer try to load each other's files. The class loader's APCu cache is now kept separate for each site, so a class found in one site's
vendor/folder is never looked up at another site's path #4392 - The Page IDs option and the GFM and table Markdown options in Configuration → System use translation keys instead of English written into the blueprint, so they can be translated. The English comes from Admin2 2.2.13 and Admin 1.10.63
- A backup profile's Scheduled Backup switch now decides on its own whether the backup runs. An old Enabled or Disabled entry for the backup job in
v2.2.28 2 weeks ago
-
Browser::isHuman()no longer counts link-preview fetchers (such asfacebookexternalhit, which loads a page each time a shared link or ad is shown), AI fetchers (ChatGPT-User,ClaudeBot,PerplexityBotand others), uptime and monitoring services, and headless or auditing tools like HeadlessChrome and Lighthouse as people, so page statistics stop counting requests nobody made. Facebook's and Instagram's in-app browsers are real visitors and stay human