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
Copy file name to clipboardExpand all lines: README.md
+18-9Lines changed: 18 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,19 +20,29 @@ php-go allows to call Go code from PHP, with minimal code boilerplate.
20
20
21
21
## Install
22
22
23
-
#### PHP ext:
23
+
You can download this package using "go get". When using "go get", you'll have to [set your $GOPATH](https://github.com/golang/go/wiki/SettingGOPATH) first.
24
+
Then you can run:
24
25
25
-
cd ext
26
-
phpize && ./configure && make && sudo make install
26
+
```
27
+
go get github.com/arnaud-lb/php-go
28
+
```
29
+
30
+
When this is finished, change directories to the included "ext" folder:
31
+
32
+
```
33
+
cd $GOPATH/src/github.com/arnaud-lb/php-go/ext
34
+
```
35
+
36
+
Then configure and make the binary:
37
+
38
+
```
39
+
phpize && ./configure && make && sudo make install
40
+
```
27
41
28
42
Then add ``extension=phpgo.so`` to your php.ini, or call php with ``-dextension=phpgo.so``
29
43
30
44
Note: php-go supports PHP 7 (non-ZTS). For PHP 5, use the php5 branch.
0 commit comments