PHPackages                             rikby/gitext - 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. rikby/gitext

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

rikby/gitext
============

v0.10.1(8y ago)019MITPHP

Since Aug 18Pushed 8y ago2 watchersCompare

[ Source](https://github.com/rikby/gitext)[ Packagist](https://packagist.org/packages/rikby/gitext)[ RSS](/packages/rikby-gitext/feed)WikiDiscussions master Synced yesterday

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

GitExt: Git extra commands
==========================

[](#gitext-git-extra-commands)

Intro
=====

[](#intro)

This application helps to extend base GIT API. It extends:

- `git flow`
- `git tag`

Installation
============

[](#installation)

Installation by using global scope
----------------------------------

[](#installation-by-using-global-scope)

Get package via composer:

```
$ composer global require rikby/gitext ^0.10

```

And install commands into your local `git`:

```
$ gitext install

```

or

```
$ bash ~/.composer/vendor/bin/gitext install

```

Installation through `create-project`
-------------------------------------

[](#installation-through-create-project)

```
$ composer create-project rikby/gitext ./gitext ^0.10

```

And install commands into your local `git`:

```
$ php ./gitext/bin/gitext install

```

### Inside

[](#inside)

Please take a look command files which use for installation [in list](src/shell/command).

Commands Using
==============

[](#commands-using)

Sort tags
---------

[](#sort-tags)

```
$ git tags
```

Sorting Git tags using PHP function [`version_compare()`](http://php.net/version_compare).

Increment tag using `semver` tool
---------------------------------

[](#increment-tag-using-semver-tool)

[SemVer](https://github.com/npm/node-semver) must be installed.

(You may try to use [this gist](https://gist.github.com/andkirby/3f65c5a6499739c842e25fb7f6d5e682) to make quick install `node`+`npm` in GitBash.)

For example we need to add new build/pre-release

```
# show tag sorted by semver
$ semver $(git tag)
v1.0.1
[...]
v1.2.0-alpha.5

$ git tag-semver --increment prerelease
New tag: v1.2.0-alpha.1

$ semver $(git tag)
v1.0.1
[...]
v1.2.0-alpha.5
v1.2.0-alpha.6
```

Sorting Git tags according to [semantic versioning](semver.org).

Actually it uses PHP function `version_compare()` but seem it works in the same way.

There is no tag name validation.

GitFlow settings for super feature branch
-----------------------------------------

[](#gitflow-settings-for-super-feature-branch)

It can be used for using your "super" issue key in GitFlow. When you can start feature for a sub-task completely using git-flow.

In this case "develop" is a "super" issue branch instead of "right" develop.

So, there are two modes:

- DEFAULT

```
feature prefix = feature/
develop branch = develop

```

- ROOT FEATURE

```
feature prefix = feature/super-
develop branch = feature/super

```

GitFlow settings for multi composer repository
----------------------------------------------

[](#gitflow-settings-for-multi-composer-repository)

```
git flow-namespace

```

Only for [multi composer repository](../../../../andkirby/multi-repo-composer) repository.

Define `GitFlow` settings based upon branch namespace.

A namespace will be set automatically by branch name.

You may add `post-checkout` Git hook.

```
printf "#!""/usr/bin/env bash\n git flow-namespace $@" > $(git rev-parse --show-toplevel)/.git/hooks/post-checkout

```

`.git/hooks/post-checkout` file content:

```
#!/usr/bin/env bash
git flow-namespace $@

```

Environment variables
=====================

[](#environment-variables)

- `GITEXT_SEMVER_BIN` - variable for custom path to `semver` binary file.
- `GITEXT_GIT_BIN` - variable for custom path to `git` binary file.
- `GITEXT_PHP_BIN` - variable for custom path to `php` binary file.

User GIT commands
=================

[](#user-git-commands)

You may create your own commands. Here is an example.

Create file `~/.gitext/git-hello-there.sh`:

```
#!/usr/bin/env bash

# CMD: git hello-there
# DESCR: Some test command.

# you may include some file GitExt files
# . $(gitext source)/shell/lib/git.sh

echo Hello there
```

Check it in commands list:

```
$ gitext install --help
[...]
   git hello-there        Some test command.
```

Install and test:

```
$ gitext install

$ git hello-there
Hello there
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Recently: every ~30 days

Total

9

Last Release

3183d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79af1435892dd9111c06a5e386fd69b577a71f3fbcc3f20aab50db8e5abc8ce2?d=identicon)[andkirby](/maintainers/andkirby)

---

Top Contributors

[![andkirby](https://avatars.githubusercontent.com/u/1828532?v=4)](https://github.com/andkirby "andkirby (82 commits)")

### Embed Badge

![Health badge](/badges/rikby-gitext/health.svg)

```
[![Health](https://phpackages.com/badges/rikby-gitext/health.svg)](https://phpackages.com/packages/rikby-gitext)
```

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M24.4k](/packages/friendsofphp-php-cs-fixer)[illuminate/session

The Illuminate Session package.

9939.3M835](/packages/illuminate-session)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k47](/packages/friendsoftypo3-content-blocks)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k39](/packages/civicrm-civicrm-core)[symfony/stimulus-bundle

Integration with your Symfony app &amp; Stimulus!

17316.3M279](/packages/symfony-stimulus-bundle)

PHPackages © 2026

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