Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 916 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 916 Bytes

Git Traits

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