---
title: "Statamic sites with content and code together in one git repo"
description: "Statamic keeps content as flat files, so on In a Box each edit lands in git history, ready to inspect or reverse. Upgrades run on a branch first."
url: https://in-a-box.online/webdev/sites/statamic/
---
1.  [In a Box](https://in-a-box.online/)
2.  [Kits](https://in-a-box.online/kits/)
3.  [WebDev (in a box)](https://in-a-box.online/webdev/)
4.  [Site stacks](https://in-a-box.online/webdev/sites/)
5.  [Statamic](https://in-a-box.online/webdev/sites/statamic/)

# Statamic sites with their whole history in git.

Statamic stores entries as flat files on top of Laravel. With pages and templates sharing one repository, In a Box can show who changed a page and put it back.

![The Statamic logo on a dark Karkinos background.](https://in-a-box.online/img/stack-statamic.webp)

## Content as files, no database

Our October 2026 test used Statamic 6.38 in its flat file setup. There is no database to run. Ask who edited the about page and the answer comes from git history, along with the change itself and an offer to restore it.

## A new page is a new file

Entries are plain files, so content can be added without opening the control panel. Each one is previewed on the dev copy before it goes live, and the commit goes out together with any code it needs.

## Laravel and PHP underneath

Because Statamic sits on [Laravel](https://in-a-box.online/webdev/sites/laravel/), its lifespan is tied to Laravel and PHP support. Each Laravel release gets two years of security fixes, and PHP 8.2 stops getting them on 31 December 2026. Each site is pinned to PHP 8.1, 8.2, 8.3 or 8.4 and served by PHP-FPM.

## Upgrades, the stache and caching

Statamic and its addons are upgraded on a branch. The assistant installs with Composer, warms the stache and the static cache with `php please`, runs the tests and checks every collection page. Static caching is checked too before anything is released.

## Going fully static

Statamic is already light, so it stays. When no page needs PHP at request time, its static site generator can turn the whole site into plain files.

MORE IN SITE STACKS

-   [Site stacks: the overview](https://in-a-box.online/webdev/sites/)
-   [Astro](https://in-a-box.online/webdev/sites/astro/)
-   [Craft CMS](https://in-a-box.online/webdev/sites/craft/)
-   [Django](https://in-a-box.online/webdev/sites/django/)
-   [Drupal](https://in-a-box.online/webdev/sites/drupal/)
-   [Flask](https://in-a-box.online/webdev/sites/flask/)
-   [Joomla](https://in-a-box.online/webdev/sites/joomla/)
-   [Laravel](https://in-a-box.online/webdev/sites/laravel/)
-   [Next.js](https://in-a-box.online/webdev/sites/nextjs/)
-   [Plain PHP](https://in-a-box.online/webdev/sites/php/)
-   [Plain HTML](https://in-a-box.online/webdev/sites/plain-html/)
-   [WordPress](https://in-a-box.online/webdev/sites/wordpress/)

## Run for you in the cloud, from £250 a month.

[See the plans](https://in-a-box.online/pricing/#plans)[Get in touch](https://in-a-box.online/contact/)
