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: phper-doc/doc/_01_introduction/index.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,16 +10,16 @@ The crates are not only the PHP binding for Rust, but also the framework for wri
10
10
11
11
## Purpose
12
12
13
-
I used to use C language to write PHP extensions. At that time, C/C++ are the only way to write PHP extensions.
13
+
I used to use the C language to write PHP extensions. At that time, C and C++ were the only ways to write PHP extensions.
14
14
15
-
But I found the problem is that using C language can easily cause memory problems, which is very troublesome when debugging PHP extensions.
15
+
But I found the problem was that using the C language could easily cause memory problems, which were very troublesome when debugging PHP extensions.
16
16
17
-
Moreover, third-party libraries in C language are not easy to use, and version compatibility problems are often encountered in dynamic linking, which is inconvenient to use.
17
+
Moreover, third-party libraries in the C language are not easy to use, and version compatibility problems are often encountered in dynamic linking, which is inconvenient to use.
18
18
19
-
Later, Rust appeared, and I started to use C to call Rust's FFI to develop PHP extensions. The experience is better than only use C language.
19
+
Later, Rust appeared, and I started to use C to call Rust's FFI to develop PHP extensions. The experience was better than using only the C language.
20
20
21
-
However, it is not convenient for Rust to generate C ABI and then call C, so I got the idea of using pure Rust to write PHP extensions.
21
+
However, it was not convenient for Rust to generate C ABI and then call C, so I got the idea of using pure Rust to write PHP extensions.
22
22
23
-
So I started to build the framework of phper.
23
+
So I started building the framework for phper.
24
24
25
-
The other goal is to enable PHP to benefit from the Rust ecosystem.
25
+
Another goal is to enable PHP to benefit from the Rust ecosystem.
Copy file name to clipboardExpand all lines: phper-doc/doc/_03_integrate_with_pecl/index.md
+3-8Lines changed: 3 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,10 @@
1
1
# Integrate with PECL
2
2
3
-
As can be seen from the `quick start` example, using phper to develop
4
-
PHP extension doesn't need the `phpize` and `make` processes like developing
5
-
with C/C++.
3
+
As can be seen from the `quick start` example, using phper to develop a PHP extension doesn't require the `phpize` and `make` processes, as you would when developing with C/C++.
6
4
7
-
But, if you want to publish the extension on [PECL](https://pecl.php.net/)
8
-
(the official repository of PHP extensions), you need to integrate phper
9
-
project with `phpize` and `make`, because PECL install command will call them.
5
+
However, if you intend to publish the extension on PECL (the official repository of PHP extensions), you will need to integrate the phper project with `phpize` and `make` since the PECL install command will call them.
10
6
11
-
This chapter will guide you how to integrate phper project with `pecl` and
12
-
`phpize`.
7
+
This chapter will guide you on how to integrate the phper project with `pecl` and `phpize`.
0 commit comments