FFFF GitHub - d8ahazard/git-php at version-2 · GitHub
[go: up one dir, main page]

Skip to content

d8ahazard/git-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git-PHP

Library for work with Git repository from PHP.

Usage

<?php
	// new repo object
	$repo = new Cz\Git\GitRepository(__DIR__);
	
	// new file
	$filename = __DIR__ . '/first.txt';
	file_put_contents($filename, "Lorem ipsum\ndolor\nsit amet");
	
	// commit
	$repo->addFile($filename);
	$repo->commit('init commit');

API documentation

Installation

Download a latest package or use Composer:

composer require czproject/git-php

License: New BSD License
Author: Jan Pecha, http://janpecha.iunas.cz/

About

Library for work with Git repositories in PHP.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 99.8%
  • Shell 0.2%
0