nkey / gitprovider
Provider for Git SCM
dev-master
2015-05-17 18:43 UTC
Requires
- php: >=5.4
- nkey/phpgenerics: 1.1.*@dev
- psr/log: 1.0
Requires (Dev)
- pdepend/pdepend: 2.0.6
- phploc/phploc: 2.1.1
- phpmd/phpmd: 2.2.2
- phpunit/dbunit: 1.3.2
- phpunit/phpunit: 4.6.6
- satooshi/php-coveralls: dev-master
- sebastian/phpcpd: 2.0.2
- squizlabs/php_codesniffer: 2.3.2
- theseer/phpdox: 0.8.0
This package is auto-updated.
Last update: 2020-01-03 18:06:35 UTC
README
phpGitProvider
This package provides an easy to use git client class for PHP. Here a small example to show the features:
$path = "/path/to/where/you/want/to/work/on/your/repo"; $provider = new GitProvider($path); // Create a shared bare repository $provider->create(true, true); // Set the author of the repo $provider->setAuthor("John Doe", "john@doe.tld"); // Provide a project name $provider->setProjectName('A test repository'); // Some data to repository (file must exist) $provider->addToIndex("README.md"); // Commit your changes with a speaking message $provider->commit("Added README");