PHPackages                             devshop/git-traits - 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. devshop/git-traits

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

devshop/git-traits
==================

Traits to make classes git-aware.

2.x-dev(2y ago)08.0k↓100%MITPHPPHP ^7.1||^8.0

Since Jan 21Pushed 1y agoCompare

[ Source](https://github.com/devshop-packages/git-traits)[ Packagist](https://packagist.org/packages/devshop/git-traits)[ Docs](https://getdevshop.com)[ RSS](/packages/devshop-git-traits/feed)WikiDiscussions feature/composer/git-traits Synced today

READMEChangelogDependencies (7)Versions (83)Used By (0)

Git Traits
==========

[](#git-traits)

The Git Traits package makes it easy to make your classes aware of the git repos they reside in.

### GitRepositoryAwareTrait

[](#gitrepositoryawaretrait)

A PHP Trait that gives any class awareness of the Git Repository it resides in using the PHP Stream Wrapper for Git from .

### GitHubRepositoryAwareTrait

[](#githubrepositoryawaretrait)

Includes GitRepositoryAwareTrait and parses GitHub Repo URLs to allow methods getRepoOwner() and getRepoName().

Resources
---------

[](#resources)

- [Documentation](https://github.com/opendevshop/devshop/blob/develop/README.md)
- [Contributing](https://github.com/opendevshop/devshop/blob/develop/docs/DEVELOPING.md)
- [Report issues](https://github.com/opendevshop/devshop/issues) and [send Pull Requests](https://github.com/opendevshop/devshop/pulls)in the [main DevShop repository](https://github.com/opendevshop/devshop)

Credits
-------

[](#credits)

$CREDITS

###  Health Score

30

—

LowBetter than 67% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

6

Last Release

1064d ago

Major Versions

1.x-dev → 2.x-dev2023-04-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/10539fb9e887c35b626eba70c97dd9d53ba14e987d4f129b55a488664a834eca?d=identicon)[jonpugh](/maintainers/jonpugh)

---

Top Contributors

[![jonpugh](https://avatars.githubusercontent.com/u/106420?v=4)](https://github.com/jonpugh "jonpugh (1 commits)")

### Embed Badge

![Health badge](/badges/devshop-git-traits/health.svg)

```
[![Health](https://phpackages.com/badges/devshop-git-traits/health.svg)](https://phpackages.com/packages/devshop-git-traits)
```

###  Alternatives

[aeliot/todo-registrar

Register TODOs from source code in issue tracker

153.0k](/packages/aeliot-todo-registrar)

PHPackages © 2026

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