chrishalbert / git
A git wrapper.
Installs: 7 866
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: ^5.6 || ^7.0
Requires (Dev)
- chadicus/coding-standard: ~1.0
- phing/phing: 2.*
- phpunit/phpunit: 4.*
- satooshi/php-coveralls: 1.*
- squizlabs/php_codesniffer: 2.*
README
Overview
This is a simple git wrapper created for use in other php libraries.
It uses magic methods to execute commands, however it is extendable.
Installation
Add this to your composer file:
{
"require": {
"chrishalbert/git": "1.*"
}
}
Or simply on the command line:
composer require chrishalbert/git
Usage
$git = new Git(); $branches = $git->branch(); // Fix a file for all branches foreach ($branches as $branch) { $git->checkout($branch); // Do stuff $git->add('.'); $git->commit(['--message' => 'Fixed a bug']); } $git->checkout('master');