PHPackages                             jeffersonassilva/vcs-php - 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. jeffersonassilva/vcs-php

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

jeffersonassilva/vcs-php
========================

Public VCS

1.15.0(7y ago)3273MITPHPPHP &gt;5.6

Since Jun 18Pushed 5y agoCompare

[ Source](https://github.com/jeffersonassilva/vcs-php)[ Packagist](https://packagist.org/packages/jeffersonassilva/vcs-php)[ RSS](/packages/jeffersonassilva-vcs-php/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (1)Versions (19)Used By (0)

vcs-php
=======

[](#vcs-php)

PHP &gt;= 5.6

Display the code version of the project.

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

[](#installation)

Use [Composer](https://getcomposer.org) to install the package.

Update your composer.json

```
"require": {
    "jeffersonassilva/vcs-php": "*"
}

```

or use composer's require command:

```
$ composer require jeffersonassilva/vcs-php

```

Required
--------

[](#required)

It is necessary that your variable **$\_SERVER\["DOCUMENT\_ROOT"\]** is correct, based in your project path. If it is not, you can pass the path as a parameter in all functions.

```
echo VcsPHP::isGIT('/var/www/my-project');
```

Usage Examples
--------------

[](#usage-examples)

```
use jeffersonassilva\VcsPHP\VcsPHP;

echo VcsPHP::branch();
```

### Functions

[](#functions)

MethodDescriptionGIT/SVN`isGIT([string $dir = null])`Check it if vcs is GITBOTH`isSVN([string $dir = null])`Check it if vcs is SVNBOTH`repository([string $dir = null])`Show repository urlBOTH`branch([string $dir = null])`Show the branch nameBOTH`tag([string $dir = null])`Show the tag nameBOTH`revision([bool $long = false], [string $dir = null])`Show the revision codeBOTH`authorDate(string $format = 'Y-m-d H:i:s', [string $dir = null])`Show the date of authorBOTH`authorName([string $dir = null])`Show the name of authorBOTH`authorEmail([string $dir = null])`Show the email of authorGIT`committerDate(string $format = 'Y-m-d H:i:s', [string $dir = null])`Show the date of committerGIT`committerName([string $dir = null])`Show the name of committerGIT`committerEmail([string $dir = null])`Show the email of committerGIT`subject([string $dir = null])`Show the subject commitGIT`commits([bool $merges = false], [string $dir = null])`Show the quantity of commitsGIT`uuid([string $dir = null])`Show repository UUIDSVN`nodeKind([string $dir = null])`Show the node kindSVNAuthor
------

[](#author)

- Jefferson Alessandro Santos da Silva - [@jeffersonassilva](https://instagram.com/jeffersonassilva/)

Contribute
----------

[](#contribute)

Contributions to the package are always welcome!

- Report any bugs or issues you find on the [issue tracker](https://github.com/jeffersonassilva/vcs-php/issues).
- You can grab the source code at the package's [Git repository](https://github.com/jeffersonassilva/vcs-php).

Support
-------

[](#support)

If you are having problems, send a mail to .

License
-------

[](#license)

The scripts and documentation in this project are released under the [MIT License](LICENSE).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Recently: every ~10 days

Total

17

Last Release

2817d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2eb57076b2b4b74c3f86a60d57295f2724a5b3b1805fe048e3d5b5e5f1bd7dd4?d=identicon)[jeffersonassilva](/maintainers/jeffersonassilva)

---

Top Contributors

[![jeffersonassilva](https://avatars.githubusercontent.com/u/22120787?v=4)](https://github.com/jeffersonassilva "jeffersonassilva (141 commits)")

---

Tags

phpversionvcs

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/jeffersonassilva-vcs-php/health.svg)

```
[![Health](https://phpackages.com/badges/jeffersonassilva-vcs-php/health.svg)](https://phpackages.com/packages/jeffersonassilva-vcs-php)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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