devshop/git-traits

Traits to make classes git-aware.

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

This package is auto-updated.

Last update: 2024-03-28 14:03:39 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