granam / git
Basic workflow with GIT
Installs: 572
Dependents: 8
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/granam/git
Requires
- php: >=7.3
- granam/strict-object: ^3.0
Requires (Dev)
- granam/exceptions-hierarchy: ^5.0
- phpunit/phpunit: ^9.4
- symfony/process: ^5.1
README
For more sophisticated Git workflow, try for example sebastianfeldmann/git.
Current package can just
- get Git status
- get diff against origin master
- get last commit hash
- get patch versions from tags
- get all version-like branches
- clone a branch
- update a branch
- say if a remote branch exists
Usage
<?php $git = new \Granam\Git\Git(); $patchVersions = $git->getTagPatchVersions(__DIR__); print_r($patchVersions); // [1.0.0] $minorVersions = $git->getAllMinorVersionLikeBranches(__DIR__); print_r($minorVersions); // [1.0]