devshop / git-traits
Traits to make classes git-aware.
1.8.0-beta3
2023-04-25 19:49 UTC
Requires
- php: ^7.1||^8.0
- eloquent/composer-config-reader: ^3.0
- guzzlehttp/guzzle: ^6
- http-interop/http-factory-guzzle: ^1.2
- knplabs/github-api: ^3.9||^1.0
- php-http/discovery: ~1.14.0
- php-http/guzzle6-adapter: ^2.0@dev
- teqneers/php-stream-wrapper-for-git: ^2.0@dev
This package is auto-updated.
Last update: 2026-06-04 15:57:11 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