danielmarschall / glip
Git library for PHP
Installs: 174
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 113
Open Issues: 0
Requires
- php: >=5.3
- ext-zlib: *
This package is auto-updated.
Last update: 2025-04-10 23:06:51 UTC
README
glip is a Git Library In PHP. It allows you to access bare git repositories from PHP scripts, even without having git installed.
Initially written by Patrik Fimml, it was forked slightly updated by Daniel Marschall in 2023.
Changes in the fork
- Added composer.json
- Added README.md
- Removed Doxygen
- Made compatible with PHP 8
- Fixed assertion error in GitCommitStamp
- Added namespace and renamed files to their classname
- Misc fixes to make PHPstan tests pass
Usage
Add dependency in composer using the command git require danielmarschall/glip
.
Include the autoload file, as shown below:
<?php use ViaThinkSoft\Glip\Git; require_once '/path/to/vendor/autoload.php'; $repo = new Git('project/.git');