PHPackages                             m-tech-org/laravel-gitstamp - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. m-tech-org/laravel-gitstamp

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

m-tech-org/laravel-gitstamp
===========================

Deploy-time git commit/date stamping for Laravel apps with no build pipeline — know what's actually running in production without SSHing in.

v1.0.1(1mo ago)035↓75%MITPHPPHP ^8.1CI passing

Since Jul 18Pushed 1mo agoCompare

[ Source](https://github.com/m-tech-org/laravel-gitstamp)[ Packagist](https://packagist.org/packages/m-tech-org/laravel-gitstamp)[ Docs](https://github.com/m-tech-org/laravel-gitstamp)[ RSS](/packages/m-tech-org-laravel-gitstamp/feed)WikiDiscussions develop Synced 1w ago

READMEChangelog (2)Dependencies (7)Versions (4)Used By (0)

laravel-gitstamp
================

[](#laravel-gitstamp)

[![run-tests](https://github.com/m-tech-org/laravel-gitstamp/actions/workflows/run-tests.yml/badge.svg)](https://github.com/m-tech-org/laravel-gitstamp/actions/workflows/run-tests.yml)[![code-quality](https://github.com/m-tech-org/laravel-gitstamp/actions/workflows/code-quality.yml/badge.svg)](https://github.com/m-tech-org/laravel-gitstamp/actions/workflows/code-quality.yml)[![Latest Version on Packagist](https://camo.githubusercontent.com/d8b0ceacdbb97c67be330f1520498cd7f0ae1c4233e9323d894afaf285004841/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d2d746563682d6f72672f6c61726176656c2d6769747374616d702e737667)](https://packagist.org/packages/m-tech-org/laravel-gitstamp)[![Total Downloads](https://camo.githubusercontent.com/f9f0bf185c520463d0091fc9d84a92b31688704cf7b2900122dcbbc8c2dfbb21/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d2d746563682d6f72672f6c61726176656c2d6769747374616d702e737667)](https://packagist.org/packages/m-tech-org/laravel-gitstamp)[![License: MIT](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE.md)

Know what's actually running in production, without SSHing in and running `git log`.

`laravel-gitstamp` generates a version stamp (date + short git SHA, e.g. `2026.07.18-6601bf7`) once at deploy time and gives you a helper, a facade, and a Blade component to display it anywhere in your app — no git tags, no manual version bumping, no shelling out to git on every request.

See [ABOUT.md](ABOUT.md) for the problem this solves and the reasoning behind the design.

Requirements
------------

[](#requirements)

laravel-gitstampPHPLaravel^1.0^8.19.x – 12.xLaravel 10–12 are covered by CI. Laravel 9 is supported at runtime (nothing in this package's code is version-specific) but isn't covered by automated CI — Pest has never shipped a release compatible with the PHPUnit version Laravel 9's test tooling pins to. See [CONTRIBUTING.md](CONTRIBUTING.md) for details.

Installation
------------

[](#installation)

Available on [Packagist](https://packagist.org/packages/m-tech-org/laravel-gitstamp):

```
composer require m-tech-org/laravel-gitstamp
```

The package auto-registers its service provider and `Gitstamp` facade via Laravel package discovery — no manual registration needed.

Optionally publish the config file:

```
php artisan vendor:publish --tag=gitstamp-config
```

Usage
-----

[](#usage)

### 1. Generate the stamp at deploy time

[](#1-generate-the-stamp-at-deploy-time)

Run this once per deploy, in the app's working directory (a real git checkout):

```
git pull origin develop
php artisan gitstamp:generate
composer install --no-dev --optimize-autoloader --no-interaction
php artisan migrate --force
```

This writes a value like `2026.07.18-6601bf7` to `storage/app/gitstamp.txt` (configurable). It never fails the deploy — if `.git` isn't present or `git` isn't on `$PATH`, it falls back to a configurable default (`'dev'` by default) instead of throwing.

Skip this step in local/dev environments; `gitstamp()` will simply return the fallback value.

### 2. Display it

[](#2-display-it)

**Helper:**

```

    Version {{ gitstamp() }}

```

**Facade:**

```
use MTechOrg\Gitstamp\Facades\Gitstamp;

Gitstamp::current(); // "2026.07.18-6601bf7"
```

**Blade component:**

```

```

The component renders minimal markup (`Version {{ ... }}`) and forwards any attributes you pass it — styling and placement are up to your app's theme.

Configuration
-------------

[](#configuration)

```
// config/gitstamp.php
return [
    'path' => storage_path('app/gitstamp.txt'),
    'date_format' => 'Y.m.d',
    'format' => '%s-%s', // sprintf(format, date, short_sha)
    'fallback' => 'dev',
];
```

Testing
-------

[](#testing)

```
composer install
composer test
composer format   # Pint, code style
composer analyse   # PHPStan / Larastan, static analysis
```

Changelog
---------

[](#changelog)

See [CHANGELOG.md](CHANGELOG.md) for a history of changes.

Contributing
------------

[](#contributing)

See [CONTRIBUTING.md](CONTRIBUTING.md).

Security
--------

[](#security)

If you discover a security issue, please open an issue on [GitHub](https://github.com/m-tech-org/laravel-gitstamp/issues) rather than a public PR with exploit details.

Credits
-------

[](#credits)

See [CREDITS.md](CREDITS.md).

License
-------

[](#license)

The MIT License (MIT). See [LICENSE.md](LICENSE.md) for details.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance91

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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 ~0 days

Total

2

Last Release

45d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/93652231?v=4)[M Technologies](/maintainers/m-tech-ltd)[@m-tech-ltd](https://github.com/m-tech-ltd)

---

Top Contributors

[![m-tech-ltd](https://avatars.githubusercontent.com/u/93652231?v=4)](https://github.com/m-tech-ltd "m-tech-ltd (8 commits)")

---

Tags

laravelversioninggitversiondeployment

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/m-tech-org-laravel-gitstamp/health.svg)

```
[![Health](https://phpackages.com/badges/m-tech-org-laravel-gitstamp/health.svg)](https://phpackages.com/packages/m-tech-org-laravel-gitstamp)
```

###  Alternatives

[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

80732.6M276](/packages/laravel-mcp)[spatie/laravel-health

Monitor the health of a Laravel application

89313.5M196](/packages/spatie-laravel-health)[illuminate/queue

The Illuminate Queue package.

20433.5M2.0k](/packages/illuminate-queue)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k104.7M379](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k220.0M1.5k](/packages/laravel-sail)[laravel/ai

The official AI SDK for Laravel.

1.1k6.4M362](/packages/laravel-ai)

PHPackages © 2026

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