File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ ## Build Instructions
2
+ Run the following commands
3
+
4
+ ``` shell
5
+ phpize && ./configure
6
+ make
7
+ make test
8
+ ```
9
+
10
+ see also http://wiki.zeromq.org/bindings:php
11
+
12
+ ## Auto Generation
13
+
14
+ ### Sockopts
15
+ The ZMQ Lib functionality depends mostly on the sockopt flags which can be
16
+ set on libzmq. In order to keep these flags in sync with the upstream
17
+ library the flags can be automatically pulled by a script.
18
+
19
+ To do this you will need to install the gsl library, see also https://github.com/imatix/gsl
20
+
21
+ ``` shell
22
+ git clone https://github.com/imatix/gsl
23
+ cd gsl/src
24
+ make
25
+ sudo make install
26
+ ```
27
+
28
+ Then run from the project root directory ` ./options/generate.sh ` to update
29
+ the sockopts.
30
+
31
+ ### api.php generation
32
+
33
+ The api definition can be auto generated by the tool DocThor.
34
+ Note: This requires to build the extension first and specify on the command
35
+ line.
36
+
37
+ ``` shell
38
+ git clone https://github.com/SegFaulty/DocThor
39
+ php DocThor/DocThor.php --sourceDir=./ zmq
40
+ php -d extension=modules/zmq.so DocThor.php --sourceDir=./ zmq
41
+ ```
Original file line number Diff line number Diff line change @@ -17,3 +17,5 @@ The API is roughly as follows:
17
17
18
18
19
19
For installation instructions see http://pecl.php.net/zmq
20
+
21
+ For developer instructions see DEVELOPERS.md
You can’t perform that action at this time.
0 commit comments