PHPackages                             issei-m/scm-revision-number-retriever - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. issei-m/scm-revision-number-retriever

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

issei-m/scm-revision-number-retriever
=====================================

Retrieves the current revision number which project now refers to.

v1.0(10y ago)03.3kMITPHPPHP &gt;=5.3

Since Aug 22Pushed 10y ago1 watchersCompare

[ Source](https://github.com/issei-m/ScmRevisionNumberRetriever)[ Packagist](https://packagist.org/packages/issei-m/scm-revision-number-retriever)[ RSS](/packages/issei-m-scm-revision-number-retriever/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

ScmRevisionNumberRetriever
==========================

[](#scmrevisionnumberretriever)

[![Build Status](https://camo.githubusercontent.com/ff5a465ebc3f84dee9e4e744d6bf4211b53172b8b2977781a4434c76effdc2c3/68747470733a2f2f7472617669732d63692e6f72672f69737365692d6d2f53636d5265766973696f6e4e756d6265725265747269657665722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/issei-m/ScmRevisionNumberRetriever)

This library just reads specified file content and returns it.

If you use Capistrano 3 to deploy app, The `REVISION` file is located to your application's root directory. This means it might help you to see the current revision which project now refers to like this:

```
$retriever = new \Issei\ScmRevisionNumberRetriever('/path/to/your-project/REVISION');
var_dump($retriever->getCurrentRevisionNumber()); // content of "/path/to/your-project/REVISION"
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3916d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/15c23b5cac78ca616a9ba14846080f7115ec937160ef88b2a902e129b18cc1ea?d=identicon)[issei-m](/maintainers/issei-m)

---

Top Contributors

[![issei-m](https://avatars.githubusercontent.com/u/1135118?v=4)](https://github.com/issei-m "issei-m (1 commits)")

---

Tags

revisiongitcapistrano

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/issei-m-scm-revision-number-retriever/health.svg)

```
[![Health](https://phpackages.com/badges/issei-m-scm-revision-number-retriever/health.svg)](https://phpackages.com/packages/issei-m-scm-revision-number-retriever)
```

###  Alternatives

[czproject/git-php

Library for work with Git repository in PHP.

5544.9M81](/packages/czproject-git-php)[cypresslab/gitelephant

An abstraction layer for git written in PHP

6131.0M23](/packages/cypresslab-gitelephant)[bruli/php-git-hooks

Git hooks for PHP projects.

675370.8k5](/packages/bruli-php-git-hooks)[marcocesarato/php-conventional-changelog

Generate changelogs and release notes from a project's commit messages and metadata and automate versioning with semver.org and conventionalcommits.org

2511.3M109](/packages/marcocesarato-php-conventional-changelog)[ramsey/conventional-commits

A PHP library for creating and validating commit messages according to the Conventional Commits specification. Includes a CaptainHook action!

1931.2M122](/packages/ramsey-conventional-commits)[sebastianfeldmann/git

PHP git wrapper

466.9M18](/packages/sebastianfeldmann-git)

PHPackages © 2026

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