You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because I need libgit2 and the implementation at https://github.com/libgit2/libgit2 is not maintained anymore (and no PHP7 implementation currently exists) I decided to put one together quickly.
3
+
Because I need libgit2 and the implementation at https://github.com/libgit2/php-git doesn't appear maintained anymore (and no PHP7 implementation currently exists) I decided to put one together quickly with simple classes close to the original libgit2 syntax.
4
4
5
-
This implementation __requires__ PHP7 and implements classes unlike the libgit2 version, because it makes more sense.
5
+
This implementation __requires__ PHP7 and implements classes unlike the libgit2 version, because why not.
6
6
7
-
Work in progress. Methods I need will be implemented first.
7
+
All the methods I needed are now implemented, however if you need anything missing you can open an issue. Eventually all methods will be implemented, probably.
8
8
9
9
## Requirements
10
10
11
11
PHP 7.0 or above.
12
12
13
+
## Installation
14
+
15
+
It is highly recommended to link libgit2 statically so when it is updated you will not need to build this package again. Not rebuilding would lead to strange behavior and errors if we didn't check the version at initialization and refused to load when version doesn't match. Linking statically libgit2 is trivial and prevents most issues.
16
+
17
+
By default the configure script will use the local libgit2, so you just need to build it. This can be accomplished by running:
18
+
19
+
$ ./libgit2_build.sh
20
+
21
+
You can then build php-git2 as you would any extension:
22
+
23
+
$ phpize
24
+
$ ./configure
25
+
$ make
26
+
$ make install
27
+
28
+
To use your system's libgit2, run configure with the `--with-system-libgit2` flag.
0 commit comments