PHPackages                             leowebguy/git-info - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. leowebguy/git-info

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

leowebguy/git-info
==================

Output git info over twig

2.0.0(2y ago)127↓100%[1 issues](https://github.com/leowebguy/git-info/issues)proprietaryPHPPHP ^8.2

Since Nov 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/leowebguy/git-info)[ Packagist](https://packagist.org/packages/leowebguy/git-info)[ RSS](/packages/leowebguy-git-info/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Git Info plugin for Craft
=========================

[](#git-info-plugin-for-craft)

Output git info over twig

### Installation

[](#installation)

Shell

```
composer require leowebguy/git-info -w && php craft plugin/install git-info
```

DDEV

```
ddev composer require leowebguy/git-info -w && ddev exec php craft plugin/install git-info
```

### Usage

[](#usage)

`{{ craft.git.branch }}` &gt;&gt; current branch, i.e: stage

`{{ craft.git.remoteUrl }}` &gt;&gt; i.e: github.com:leowebguy/git-info.git

`{{ craft.git.lastTag }}` &gt;&gt; i.e: 3.1.2

`{{ craft.git.commitHash }}` &gt;&gt; last commit hash

`{{ craft.git.commitAuthor }}` &gt;&gt; last commit author (name)

`{{ craft.git.commitDate }}` &gt;&gt; last commit date

```
{% if not craft.app.config.custom.isProd %}

        {{ 'branch: ' ~ craft.git.branch }}
        {{ 'remote url: ' ~ craft.git.remoteUrl }}
        {{ 'last tag: ' ~ craft.git.lastTag }}
        {{ 'commit hash: ' ~ craft.git.commitHash }}
        {{ 'commit author: ' ~ craft.git.commitAuthor }}
        {{ 'commit date: ' ~ craft.git.commitDate }}

{% endif %}
```

[![Screenshot](resources/ss1.png)](resources/ss1.png)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~118 days

Total

2

Last Release

780d ago

Major Versions

1.0.0 → 2.0.02024-03-27

PHP version history (2 changes)1.0.0PHP ^8.0

2.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/44216bb5de0cacbd3d995a1a71c3ee395bd36380305e547ac31452f86d4cd713?d=identicon)[leowebguy](/maintainers/leowebguy)

---

Top Contributors

[![leowebguy](https://avatars.githubusercontent.com/u/8460020?v=4)](https://github.com/leowebguy "leowebguy (1 commits)")

---

Tags

craft-cmscraft-cms-plugincraft4craft5craftcmscraftcms-pluginhashgithubgitremotecraftcmscommitbranchauthor

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/leowebguy-git-info/health.svg)

```
[![Health](https://phpackages.com/badges/leowebguy-git-info/health.svg)](https://phpackages.com/packages/leowebguy-git-info)
```

###  Alternatives

[guanguans/ai-commit

Automagically generate conventional git commit message with AI. - 使用 AI 自动生成约定式 git 提交信息。

39231.2k10](/packages/guanguans-ai-commit)[nystudio107/craft-twigpack

Twigpack is a bridge between Twig and webpack, with manifest.json &amp; webpack-dev-server HMR support

97341.4k17](/packages/nystudio107-craft-twigpack)[lewisjenkins/craft-dynamic-fields

Populate Craft fields with dynamic data using the power of Twig.

14667.0k](/packages/lewisjenkins-craft-dynamic-fields)[mmikkel/retcon

Powerful Twig filters for mutating and querying HTML

79183.1k11](/packages/mmikkel-retcon)[nystudio107/craft-cookies

A simple plugin for setting and getting cookies from within Craft CMS templates.

37490.1k6](/packages/nystudio107-craft-cookies)[nystudio107/craft-minify

A simple plugin that allows you to minify blocks of HTML, CSS, and JS inline in Craft CMS templates.

37461.2k29](/packages/nystudio107-craft-minify)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
