A tiny read-only git web frontend — browse bare repos with just PHP and git, no database, no framework.
<?php /** @var string $repoName @var array $entries (header + xml decl already sent by index.php) */ ?>
<?= '<' . '?xml version="1.0" encoding="utf-8"?' . '>' ?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title><?= h($repoName) ?>, branch HEAD</title>
<updated><?= date(DATE_ATOM) ?></updated>
<?php foreach ($entries as $e): ?>
<entry>
<id><?= h($e['hash']) ?></id>
<title><?= h($e['subject']) ?></title>
<?php if ($e['at'] > 0): ?><updated><?= date(DATE_ATOM, $e['at']) ?></updated><?php endif; ?>
<link rel="alternate" href="<?= h('?r=' . $repoName . '&a=commit&h=' . $e['hash']) ?>" />
<author><name><?= h($e['author']) ?></name><?php if ($e['email'] !== ''): ?><email><?= h($e['email']) ?></email><?php endif; ?></author>
<content type="text"><?= h(atom_content_text($e)) ?></content>
</entry>
<?php endforeach; ?>
</feed>