Skip to content

Commit d63b88f

Browse files
committed
start DEVELOPERS.md for build and maintain instructions
1 parent 61f5c04 commit d63b88f

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

DEVELOPERS.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
```

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ The API is roughly as follows:
1717

1818

1919
For installation instructions see http://pecl.php.net/zmq
20+
21+
For developer instructions see DEVELOPERS.md

0 commit comments

Comments
 (0)