Skip to content

Latest commit

History

105 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Git.php

Description

A PHP git repository control library. Allows the running of any git command from a PHP class. Runs git commands using proc_open, not exec or the type, therefore it can run in PHP safe mode.

Requirements

A system with git installed

Basic Use

require__DIR__ . '/../vendor/autoload.php';
useKbjr\Git\Git;
$repo = Git::open('/path/to/repo'); // -or- Git::create('/path/to/repo')$repo->add('.');
$repo->commit('Some commit message');
$repo->push('origin', 'master');

Like my work?

ko-fi

About

A PHP git library

Resources

Stars

774 stars

Watchers

61 watching

Forks

Sponsor this project

Used by

Contributors

Languages