Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1192 | daniel-mar | 1 | # glip (Git Library In PHP) |
2 | |||
3 | glip is a Git Library In PHP. It allows you to access bare git repositories |
||
4 | from PHP scripts, even without having git installed. |
||
5 | |||
6 | Initially written by [Patrik Fimml](http://fimml.at/glip), it was forked slightly updated by Daniel Marschall in 2023. |
||
7 | |||
8 | ## Changes in the fork ## |
||
9 | |||
10 | - Added composer.json |
||
11 | - Added README.md |
||
12 | - Removed Doxygen |
||
13 | - Made compatible with PHP 8 |
||
14 | - Fixed assertion error in GitCommitStamp |
||
15 | - Added namespace and renamed files to their classname |
||
16 | - Misc fixes to make PHPstan tests pass |
||
17 | |||
18 | ## Usage ## |
||
19 | |||
20 | Add dependency in composer using the command `git require danielmarschall/glip`. |
||
21 | |||
22 | Include the autoload file, as shown below: |
||
23 | |||
24 | ```php |
||
25 | <?php |
||
26 | |||
27 | use ViaThinkSoft\Glip\Git; |
||
28 | |||
29 | require_once '/path/to/vendor/autoload.php'; |
||
30 | |||
31 | $repo = new Git('project/.git'); |
||
32 | |||
33 | ``` |