aurimasniekis / git-config
Git Config value provider
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
pkg:composer/aurimasniekis/git-config
Requires
- php: >=7.1
Requires (Dev)
- php-mock/php-mock-phpunit: ^2.0
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2025-09-14 04:46:57 UTC
README
Provides interface for git config
.
Install
Via Composer
$ composer require aurimasniekis/git-config
Usage
Initialization:
// Uses `git` from $PATH and standard `.gitconfig` files $config = new Config(); // Uses custom `git` path $config = new Config('/usr/local/bin/git'); // Uses custom `.gitconfig` file $config = new Config(null, '~/.gitconfig');
Get value
$config->get('user.name')
Set value
$config->get('user.name', 'Foo Bar')
Unset value
$config->unSet('user.name')
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
License
Please see License File for more information.