Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
SkyAPM
SkyAPM-php-sdk
提交
b5f13fa1
S
SkyAPM-php-sdk
项目概览
SkyAPM
/
SkyAPM-php-sdk
通知
14
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyAPM-php-sdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b5f13fa1
编写于
3月 18, 2018
作者:
S
songzhian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix #4 #5 #7 #6
上级
90b6e9ef
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
89 addition
and
30 deletion
+89
-30
README.md
README.md
+2
-2
README_ZH.md
README_ZH.md
+4
-4
sdk-php/README_ZH.md
sdk-php/README_ZH.md
+51
-0
sky-php7ext/README.md
sky-php7ext/README.md
+2
-24
sky-php7ext/README_ZH.md
sky-php7ext/README_ZH.md
+30
-0
未找到文件。
README.md
浏览文件 @
b5f13fa1
Sky Walking for php SDK| [中文](README.md)
==========
**SkyWalking php SDK**
: A client tool developed for PHP using SkyWalking APM tools. (It is a pity that it only supports writing log and checking curl currently.)
SkyWalking APM : https://github.com/
OpenSkywalking/
skywalking
SkyWalking APM : https://github.com/
apache/incubator-
skywalking
*
Automatic probe for PHP.
**You don't need to modify the application code.**
*
It is a PHP extension developed by zendAPI.
...
...
@@ -20,7 +20,7 @@ SkyWalking APM : https://github.com/OpenSkywalking/skywalking
# Apply to
*
version 1.0 applies to Skywalking 3.1 .
*
version 2.0 applies to Skywalking 3.X .
# In the future.
*
more php versions.
*
more os.
...
...
README_ZH.md
浏览文件 @
b5f13fa1
...
...
@@ -3,7 +3,7 @@ Sky Walking SDK for PHP | [English](README_EN.md)
**SkyWalking php SDK**
: 针对SkyWalking APM工具为php开发的客户端工具 (目前只支持写日志方式和只针对curl检测)
SkyWalking APM : https://github.com/
OpenSkywalking/
skywalking
SkyWalking APM : https://github.com/
apache/incubator-
skywalking
*
PHP 自动探针
**不需要修改应用程序代码**
*
使用zendAPI开发的 php扩展
...
...
@@ -17,12 +17,12 @@ SkyWalking APM : https://github.com/OpenSkywalking/skywalking
# 使用安装
*
php扩展包(https://github.com/SkywalkingContrib/skywalking-php-sdk/tree/songzhian/sky-php7ext)
*
php代码类包(https://github.com/SkywalkingContrib/skywalking-php-sdk/tree/songzhian/sdk-php)
*
php扩展包(https://github.com/SkywalkingContrib/skywalking-php-sdk/tree/songzhian/sky-php7ext
/README_ZH.md
)
*
php代码类包(https://github.com/SkywalkingContrib/skywalking-php-sdk/tree/songzhian/sdk-php
/README_ZH.md
)
# 对应版本支持
*
1.0对应版本:Skywalking 3.1
*
2.0对应版本:Skywalking 3.x
# 将要完成
*
其它php版本扩展支持
*
更多系统支持
...
...
sdk-php/README_ZH.md
0 → 100644
浏览文件 @
b5f13fa1
# PHP SkyWalking 类: SkyWalking PHP 客户端
---
-
[
安装
]
(#installation)
-
[
要求
]
(#requirements)
-
[
快速开始实例
]
(#quick-start-and-examples)
---
### Installation
使用安装 SkyWalking 类, 操作:
### Requirements
PHP Curl Class works with PHP 5.2 - 7.9.99 , and HHVM.
### Quick Start and Examples
// must put these code at the beginning !!!
// that would auto register shutdown function !!!
include_once ("./sdk-php/SkyWalking.php");// or use composer
//LOG_PATH is skywalking's logfile path
SkyWalking::getInstance("api")->setLogPath(LOG_PATH)->setSamplingRate(5);
....
....
$ch = curl_init();
curl_setopt($ch);
....
....
SkyWalking::getInstance()->startSpanOfCurl("www.api.com", $headers);
....
....
curl_setopt($ch);
$rs = curl_exec($ch);
SkyWalking::getInstance()->endSpanOfcurl($ch);
....
....
\ No newline at end of file
sky-php7ext/README.md
浏览文件 @
b5f13fa1
...
...
@@ -24,31 +24,9 @@ copy ini to php.ini
the current phpext works with PHP 7.0-7.9.99 。
this extension references something external, use with: pphcurl、phpjson and phpstandard
need to install, Please refer to: https://github.com/grpc/grpc/blob/master/INSTALL.md
### Documentation
-
https://github.com/OpenSkywalking/skywalking/wiki
### Quick Start and Examples
set php.ini skywalking.auto_open = On (Automatic writing
**Ignore the following**
)
OR skywalking.auto_open = OFF (the project int code )As below:
// must put these code at the beginning !!!
....
....
$ch = curl_init();
curl_setopt($ch);
SkyWalking::getInstance()->startSpanOfCurl("www.api.com", $headers);
....
....
curl_setopt($ch);
$rs = curl_exec($ch);
SkyWalking::getInstance()->endSpanOfcurl($ch);
....
....
set php.ini skywalking.auto_open = On (Automatic writing
**Ignore the following**
)
\ No newline at end of file
sky-php7ext/README_ZH.md
0 → 100644
浏览文件 @
b5f13fa1
# PHP SkyWalking Class: SkyWalking PHP client
---
-
[
安装
]
(#installation)
-
[
要求
]
(#requirements)
-
[
Quick Start and Examples
]
(#quick-start-and-examples)
---
### Installation
快速安装
复制ini内容到php.ini
git clone https://github.com/SkywalkingContrib/skywalking-php-sdk.git
cd skywalking-php-sdk/sky-php7ext
phpize
./configure
make -j [number_of_processor_cores] # eg. make -j 4
make install
### Requirements
扩展支持版本 7.0-7.9.99 。
这个扩展需要其他扩展支持: pphcurl、phpjson和phpstandard 包
需要安装GRPC 请参照 : https://github.com/grpc/grpc/blob/master/INSTALL.md
### 快速启动
设置 php.ini skywalking.auto_open = On (自动开启信息抓取
**Ignore the following**
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录