nkey/gitprovider
Composer 安装命令:
composer require nkey/gitprovider
包简介
Provider for Git SCM
关键字:
README 文档
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");
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-2-Clause
- 更新时间: 2015-02-22