PHPackages                             plotbox-io/php-git-ops - 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. plotbox-io/php-git-ops

ActiveLibrary

plotbox-io/php-git-ops
======================

PHP wrapper around git designed to help with dev-ops needs

v0.2.2(6y ago)11.3k—5.6%[1 PRs](https://github.com/plotbox-io/php-git-ops/pulls)MITPHPPHP &gt;=5.5CI passing

Since Mar 31Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/plotbox-io/php-git-ops)[ Packagist](https://packagist.org/packages/plotbox-io/php-git-ops)[ RSS](/packages/plotbox-io-php-git-ops/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (13)Used By (0)

php-git-ops
===========

[](#php-git-ops)

PHP wrapper around git designed to help with dev-ops needs. Provides classes that can be composed in various ways to perform some advanced logic.

One core use-case is ability to filter code style issues by file and line number so that issues found, but not touched on the current branch, are filtered out. This can help a lot when dealing with legacy code-bases where you want to tackle code smells bit by bit.

**NOTE: Currently in early stage of development (Potentially subject to breaking changes)**

### Example Usage

[](#example-usage)

#### Filter issues by 'lines touched' in current branch

[](#filter-issues-by-lines-touched-in-current-branch)

The logic will consider files added, and modified (unstaged, staged, comitted), filtering out any issues deemed to not have been touched in the current branch

```
// Get modifications for feature branch
$git = new Git('/home/richard/Development/PlotBox/plotbox-app');
$branchModificationsFactory = new BranchModificationsFactory($git);
$branchModifications = $branchModificationsFactory->getBranchModifications();
$lineFilter = new LineFilter($git, $branchModifications);

// Pass in ci-issues to be filtered
$issues = [
    CodeIssue::make('devops/git/post-merge', 123, 'abc123'),
    CodeIssue::make('static/maintenance.html', 456, 'abc456')
];
$filteredIssues = $lineFilter->filterIssues($issues);

```

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

[](#contributing)

Please read \[CONTRIBUTING.md\] for details on our code of conduct, and the process for submitting pull requests to us.

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance53

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

11

Last Release

2219d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.6

v0.1.6PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/01d3c8e75a243c1a4342e300c3c1d809f7ffbd66e15f64501374def880417798?d=identicon)[plotbox-io](/maintainers/plotbox-io)

---

Top Contributors

[![plotbox-io](https://avatars.githubusercontent.com/u/62928171?v=4)](https://github.com/plotbox-io "plotbox-io (40 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/plotbox-io-php-git-ops/health.svg)

```
[![Health](https://phpackages.com/badges/plotbox-io-php-git-ops/health.svg)](https://phpackages.com/packages/plotbox-io-php-git-ops)
```

PHPackages © 2026

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