@@ -4,37 +4,56 @@ GridDB PHP Client
4
4
5
5
GridDB PHP Client is developed using GridDB C Client and [ SWIG] ( http://www.swig.org/ ) (Simplified Wrapper and Interface Generator).
6
6
7
- The new PHP Client (0.8) brings improved usability.
8
- Main difference to the old PHP Client (0.5) is as below:
9
- - Put and get row data without C-based methods defined for each data-type
10
7
11
8
## Operating environment
12
9
13
10
Building of the library and execution of the sample programs have been checked in the following environment.
14
11
15
- OS: CentOS 7.8 (x64)
16
- SWIG: 4.0.0
12
+ OS: CentOS 7.9 (x64)
13
+ SWIG: 4.1.0 (commit: d22b7dfaea1f7abd4f3d0baecc1a1eddff827561)
17
14
GCC: 4.8.5
18
- PHP: 7.4.7
19
- GridDB Server: 4.5 (CE)
20
- GridDB C Client: 4.5 (CE)
15
+ PHP: 8.0/8.1
16
+ GridDB Server: 4.6 (CE)
17
+ GridDB C Client: 4.6 (CE)
18
+
19
+ OS: CentOS 8.5(x64)
20
+ SWIG: 4.1.0 (commit: d22b7dfaea1f7abd4f3d0baecc1a1eddff827561)
21
+ GCC: 8.3.1
22
+ PHP: 8.0/8.1
23
+ GridDB Server: 4.6 (CE)
24
+ GridDB C Client: 4.6 (CE)
25
+
26
+ OS: Ubuntu 18.04(x64)
27
+ SWIG: 4.1.0 (commit: d22b7dfaea1f7abd4f3d0baecc1a1eddff827561)
28
+ GCC: 7.5.0
29
+ PHP: 8.0/8.1
30
+ GridDB Server: 4.6 (CE)
31
+ GridDB C Client: 4.6 (CE)
32
+
33
+ OS: Ubuntu 20.04(x64)
34
+ SWIG: 4.1.0 (commit: d22b7dfaea1f7abd4f3d0baecc1a1eddff827561)
35
+ GCC: 10.3.0
36
+ PHP: 8.0/8.1
37
+ GridDB Server: 4.6 (CE)
38
+ GridDB C Client: 4.6 (CE)
21
39
22
40
## QuickStart
23
41
### Preparations
24
42
25
43
Install SWIG as below.
26
44
27
- $ wget https://prdownloads.sourceforge.net/swig/swig-4.0.0.tar.gz
28
- $ tar xvfz swig-4.0.0.tar.gz
29
- $ cd swig-4.0.0
45
+ $ git clone https://github.com/swig/swig.git
46
+ $ cd swig
47
+ $ git checkout d22b7dfaea1f7abd4f3d0baecc1a1eddff827561
48
+ $ ./autogen.sh
30
49
$ ./configure
31
50
$ make
32
51
$ sudo make install
33
52
34
53
Note: If CentOS, you might need to install pcre in advance.
35
54
$ sudo yum install pcre2-devel.x86_64
36
55
37
- Install PHP7.4.7 and GridDB C Client.
56
+ Install PHP 8 and GridDB C Client.
38
57
39
58
Set LIBRARY_PATH.
40
59
@@ -46,8 +65,6 @@ Set LIBRARY_PATH.
46
65
47
66
$ make
48
67
49
- 2. Include 'griddb_php_client.php' in PHP.
50
-
51
68
### How to run sample (with Command Line)
52
69
53
70
GridDB Server need to be started in advance.
@@ -72,7 +89,7 @@ GridDB Server need to be started in advance.
72
89
73
90
In the case of Web Server: Apache/2.4.6, please use the following steps.
74
91
75
- 1. Store griddb_php_client.php and sample/sample1_web.php in /var/www/html.
92
+ 1. Store sample/sample1_web.php in /var/www/html.
76
93
77
94
2. Store griddb_php_client.so in /usr/lib64/php/modules.
78
95
0 commit comments