PHPackages                             phppkg/phpgit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. phppkg/phpgit

ActiveLibrary

phppkg/phpgit
=============

A Git wrapper library for PHP 8.1+

v2.0.6(1y ago)13991↓100%4[1 PRs](https://github.com/phppkg/phpgit/pulls)MITPHPPHP &gt;8.1.0CI passing

Since Sep 27Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/phppkg/phpgit)[ Packagist](https://packagist.org/packages/phppkg/phpgit)[ Docs](https://github/phppkg/phpgit.git)[ RSS](/packages/phppkg-phpgit/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (12)Used By (0)

PhpGit
======

[](#phpgit)

[![GitHub tag (latest SemVer)](https://camo.githubusercontent.com/1d8d2a5ea8ecf4c271db11f8def092634591bbeb91eccd4153baf91e0da6fa48/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f706870706b672f706870676974)](https://github.com/phppkg/phpgit)[![Php Version Support](https://camo.githubusercontent.com/26660ea03d4e4e7e838ffa70b53f310112e8c8daa4efc336fdca3043b9a204e7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706870706b672f706870676974)](https://packagist.org/packages/phppkg/phpgit)[![Unit Tests](https://github.com/phppkg/phpgit/actions/workflows/php.yml/badge.svg)](https://github.com/phppkg/phpgit/actions)[![Deploy Pages](https://github.com/phppkg/phpgit/actions/workflows/static.yml/badge.svg)](https://github.com/phppkg/phpgit/actions/workflows/static.yml)

> **[中文说明](README.zh-CN.md)**

PhpGit - 💪 Git wrapper and feature extension library written in PHP.

> The project is forked from

**Features**

- Quick run git commands, eg: `clone,add,commit,merge`
- Git repo info fetch: `status` `branch` `remote`
- Generate changelog by git log

Installation
------------

[](#installation)

**Requirements**

- PHP 8.1+
- Git

**Method 1: directly composer require**

```
composer require phppkg/phpgit
```

**Method 2: update composer.json**

Update your composer.json and run `composer update`

```
{
    "require": {
        "phppkg/phpgit": "dev-master"
    }
}
```

Basic Usage
-----------

[](#basic-usage)

```
