michaelpetri/php-git
最新稳定版本:0.5.1
Composer 安装命令:
composer require michaelpetri/php-git
包简介
Simple wrapper around git cli, based on symfony/process.
README 文档
README
This package contains a php wrapper around the git cli, it is based on symfony/process and strictly typed.
Installation
composer require michaelpetri/php-git
Example
$file = File::from('/home/mpetri/PhpstormProjects/php-git/README.md'); $repository = new GitRepository( $file->directory, Directory::from('/home/mpetri/PhpstormProjects/php-git/.git'), Duration::inSeconds(60) ); $repository->add($file); $repository->commit('Initial commit')
See GitRepositoryInterface or Tests for an overview of all available methods.
统计信息
- 总下载量: 6.31k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-20