README.md 1.5 KB
Newer Older
S
songzhian 已提交
1
Sky Walking for php SDK| [中文](README_ZH.md)
Z
zhian song 已提交
2
==========
H
readme  
heyanlong 已提交
3
**SkyWalking php SDK**: A client tool developed for PHP using SkyWalking APM tools. (It is a pity that it only supports checking curl currently.)
S
songzhian 已提交
4
SkyWalking APM : https://github.com/apache/incubator-skywalking
Z
zhian song 已提交
5 6 7 8 9 10 11 12 13 14

* Automatic probe for PHP. **You don't need to modify the application code.**        
  * It is a PHP extension developed by zendAPI.
  * It can hook automatically for monnitoring nodes and collecting logs.
  * It transfers with header informations automatically.
* Manual probe.
  * It is a php extension and contains some php classes. 
  * It can compatible any versions of php.You can look over the codes in the class 'SkyWalking'.
  * You need to add  business codes to monnitor.

H
readme  
heyanlong 已提交
15
# Dep
H
heyanlong 已提交
16 17
* libuuid
* gcc 4.9+
H
readme  
heyanlong 已提交
18 19 20 21
* pkg-config
* grpc
* protoc
* php 7+
Z
zhian song 已提交
22

H
readme  
heyanlong 已提交
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50

# Install
1. build php extension
```shell
git clone --recurse-submodules https://github.com/SkywalkingContrib/skywalking-php-sdk.git
cd sky-php7ext
phpize && ./configure && make && make install
```

2. make report_client
```shell
cd sky-php7ext/report
make
```

# Config
* php.ini
```shell
extension=skywalking.so
skywalking.app_code = app_code
skywalking.grpc = 127.0.0.1:11800
```

# Run
```shell
php-fpm
./report_client 120.0.0.1:11800 /tmp
```
Z
zhian song 已提交
51 52 53

# Apply to
*  version 1.0 applies to Skywalking 3.1 .
S
songzhian 已提交
54
*  version 2.0 applies to Skywalking 3.X .
H
heyanlong 已提交
55
*  version 5.0 applies to Skywalking 5.X .
Z
zhian song 已提交
56 57 58
# In the future.
  * more php versions.
  * more os.
Z
zhian song 已提交
59 60 61
# Contact Us
  * Submit an issue
  * QQ Group: 155841680