devshop/git-traits

Traits to make classes git-aware.

Installs: 7 919

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/devshop/git-traits

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

This package is auto-updated.

Last update: 2025-10-04 14:32:03 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