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(3y ago)08.0k2MITPHPPHP ^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 3w ago

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

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 62% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

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

1154d 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

[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M462](/packages/pimcore-pimcore)[aeliot/todo-registrar

Register TODOs from source code in issue tracker

153.0k](/packages/aeliot-todo-registrar)[roundcube/roundcubemail

The Roundcube Webmail suite

7.0k1.4k3](/packages/roundcube-roundcubemail)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35729.6k2](/packages/telnyx-telnyx-php)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)

PHPackages © 2026

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