File tree Expand file tree Collapse file tree 6 files changed +40
-38
lines changed Expand file tree Collapse file tree 6 files changed +40
-38
lines changed Original file line number Diff line number Diff line change 1
1
# PHPer
2
2
3
- [ ![ crates] ( https://img.shields.io/crates/v/phper?style=flat-square )] ( https://crates.io/crates/phper )
4
- [ ![ docs] ( https://img.shields.io/docsrs/phper?style=flat-square )] ( https://docs.rs/phper )
3
+ [ ![ CI] ( https://github.com/jmjoy/phper/actions/workflows/ci.yml/badge.svg )] ( https://github.com/jmjoy/phper/actions/workflows/ci.yml )
4
+ [ ![ Crates] ( https://img.shields.io/crates/v/phper )] ( https://crates.io/crates/phper )
5
+ [ ![ Docs] ( https://img.shields.io/docsrs/phper )] ( https://docs.rs/phper )
6
+ [ ![ Lines] ( https://img.shields.io/tokei/lines/github/jmjoy/phper )] ( https://github.com/jmjoy/phper )
7
+ [ ![ License] ( https://img.shields.io/crates/l/phper )] ( https://github.com/jmjoy/phper/blob/master/LICENSE )
5
8
6
9
## Rust ❤️ PHP
7
10
@@ -16,37 +19,27 @@ A library that allows us to write PHP extensions using pure Rust and using safe
16
19
17
20
### Tested Support
18
21
19
- ** os**
20
-
21
- - [x] linux
22
- - [ ] macos
23
- - [ ] windows
24
-
25
- ** php**
26
-
27
- * version*
28
-
29
- - [x] 7.0
30
- - [x] 7.1
31
- - [x] 7.2
32
- - [x] 7.3
33
- - [x] 7.4
34
- - [x] 8.0
35
-
36
- * mode*
37
-
38
- - [x] nts
39
- - [ ] zts
40
-
41
- * sapi*
42
-
43
- - [x] cli
44
- - [x] fpm
45
-
46
- * debug*
47
-
48
- - [x] disable
49
- - [ ] enable
22
+ - ** OS**
23
+ - [x] linux
24
+ - [ ] macos
25
+ - [ ] windows
26
+ - ** PHP**
27
+ - ** version**
28
+ - [x] 7.0
29
+ - [x] 7.1
30
+ - [x] 7.2
31
+ - [x] 7.3
32
+ - [x] 7.4
33
+ - [x] 8.0
34
+ - ** mode**
35
+ - [x] nts
36
+ - [ ] zts
37
+ - ** sapi**
38
+ - [x] cli
39
+ - [x] fpm
40
+ - ** debug**
41
+ - [x] disable
42
+ - [ ] enable
50
43
51
44
## Usage
52
45
@@ -105,7 +98,7 @@ pub fn get_module() -> Module {
105
98
6 . Build and install, if your php isn't installed globally, you should specify the path of ` php-config ` .
106
99
107
100
``` bash
108
- # Specify if php isn't installed globally.
101
+ # Optional, specify if php isn't installed globally.
109
102
export PHP_CONFIG = < Your path of php-config>
110
103
111
104
# Build libmyapp.so.
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Hello world example.
5
5
## Environment
6
6
7
7
``` bash
8
- # Specify if php isn't installed globally.
8
+ # Optional, specify if php isn't installed globally.
9
9
export PHP_CONFIG = < Your path of php-config>
10
10
```
11
11
Original file line number Diff line number Diff line change 2
2
3
3
Http client example.
4
4
5
+ Power by [ reqwest::blocking] ( https://docs.rs/reqwest/0.11.4/reqwest/blocking/index.html ) api.
6
+
5
7
## Environment
6
8
7
9
``` bash
8
- # Specify if php isn't installed globally.
10
+ # Optional, specify if php isn't installed globally.
9
11
export PHP_CONFIG = < Your path of php-config>
10
12
```
11
13
Original file line number Diff line number Diff line change 2
2
3
3
Http server example.
4
4
5
+ Power by [ tokio] ( https://crates.io/crates/tokio ) and [ hyper] ( https://crates.io/crates/hyper ) .
6
+
5
7
## Environment
6
8
7
9
``` bash
8
- # Specify if php isn't installed globally.
10
+ # Optional, specify if php isn't installed globally.
9
11
export PHP_CONFIG = < Your path of php-config>
10
12
```
11
13
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Log example.
5
5
## Environment
6
6
7
7
``` bash
8
- # Specify if php isn't installed globally.
8
+ # Optional, specify if php isn't installed globally.
9
9
export PHP_CONFIG = < Your path of php-config>
10
10
```
11
11
Original file line number Diff line number Diff line change @@ -20,3 +20,8 @@ once_cell = "1.5.2"
20
20
phper-macros = { version = " 0.3.0" , path = " ../phper-macros" }
21
21
tempfile = " 3.1.0"
22
22
tokio = { version = " 1.7.0" , optional = true }
23
+
24
+ [package .metadata .docs .rs ]
25
+ rustdoc-args = [" --cfg" , " docsrs" ]
26
+ all-features = true
27
+
You can’t perform that action at this time.
0 commit comments