devshop/git-traits

Traits to make classes git-aware.

Maintainers

Package info

github.com/devshop-packages/git-traits

Homepage

pkg:composer/devshop/git-traits

Statistics

Installs: 7 946

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

1.8.0-beta3 2023-04-25 19:49 UTC

This package is auto-updated.

Last update: 2026-03-04 15:20:56 UTC


README

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

GitRepositoryAwareTrait

A PHP Trait that gives any class awareness of the Git Repository it resides in using the PHP Stream Wrapper for Git from https://github.com/teqneers/PHP-Stream-Wrapper-for-Git.

GitHubRepositoryAwareTrait

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

Resources

Credits

$CREDITS