Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #29 from heyanlong/master
Browse files Browse the repository at this point in the history
release
  • Loading branch information
heyanlong authored Jan 4, 2019
2 parents bfd6f85 + 4fbb217 commit f4f0507
Show file tree
Hide file tree
Showing 61 changed files with 94 additions and 225 deletions.
76 changes: 38 additions & 38 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,41 @@
.idea
cmake-build-debug
CMakeLists.txt
sky-php7ext/grpc/*
sky-php7ext/configure.ac
sky-php7ext/skywalking.loT
sky-php7ext\.idea
sky-php7ext\*.lo
sky-php7ext\*.la
sky-php7ext\.libs
sky-php7ext\acinclude.m4
sky-php7ext\aclocal.m4
sky-php7ext\autom4te.cache
sky-php7ext\build
sky-php7ext\config.guess
sky-php7ext\config.h
sky-php7ext\config.h.in
sky-php7ext\config.log
sky-php7ext\config.nice
sky-php7ext\config.status
sky-php7ext\config.sub
sky-php7ext\configure
sky-php7ext\configure.in
sky-php7ext\include
sky-php7ext\install-sh
sky-php7ext\libtool
sky-php7ext\ltmain.sh
sky-php7ext\Makefile
sky-php7ext\Makefile.fragments
sky-php7ext\Makefile.global
sky-php7ext\Makefile.objects
sky-php7ext\missing
sky-php7ext\mkinstalldirs
sky-php7ext\modules
sky-php7ext\run-tests.php
sky-php7ext\tests/*/*.diff
sky-php7ext\tests/*/*.out
sky-php7ext\tests/*/*.php
sky-php7ext\tests/*/*.exp
sky-php7ext\tests/*/*.log
sky-php7ext\tests/*/*.sh
grpc/*
configure.ac
skywalking.loT
.idea
*.lo
*.la
.libs
acinclude.m4
aclocal.m4
autom4te.cache
build
config.guess
config.h
config.h.in
config.log
config.nice
config.status
config.sub
configure
configure.in
include
install-sh
libtool
ltmain.sh
Makefile
Makefile.fragments
Makefile.global
Makefile.objects
missing
mkinstalldirs
modules
run-tests.php
tests/*/*.diff
tests/*/*.out
tests/*/*.php
tests/*/*.exp
tests/*/*.log
tests/*/*.sh
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "sky-php7ext/protos"]
path = sky-php7ext/src/protos
[submodule "apache/incubator-skywalking-data-collect-protocol"]
path = src/protos
url = https://github.com/apache/incubator-skywalking-data-collect-protocol.git
File renamed without changes.
File renamed without changes.
66 changes: 11 additions & 55 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,17 @@
Sky Walking for php SDK| [中文](README_ZH.md)
==========
**SkyWalking php SDK**: A client tool developed for PHP using SkyWalking APM tools. (It is a pity that it only supports checking curl currently.)
SkyWalking APM : https://github.com/apache/incubator-skywalking
# SkyWalking PHP

* 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.
<img src="https://skywalkingtest.github.io/page-resources/3.0/skywalking.png" alt="Sky Walking logo" height="90px" align="right" />

# Dep
* libuuid
* gcc 4.9+
* pkg-config
* grpc
* protoc
* php 7+
SkyWalking PHP is the PHP instrumentation agent, which is compatible with [Apache SkyWalking(Incubating) APM](https://github.com/apache/incubator-skywalking) backend and others compatible agents/SDKs

## Documents
* [Document in English](docs/README.md)

# 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
```
## Support List
1. CURL

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
```

# Apply to
* version 1.0 applies to Skywalking 3.1 .
* version 2.0 applies to Skywalking 3.X .
* version 5.0 applies to Skywalking 5.X .
# In the future.
* more php versions.
* more os.
# Contact Us
* Submit an issue
* QQ Group: 155841680
* Submit an issue
* Mail list: dev@skywalking.apache.org
* [Gitter](https://gitter.im/openskywalking/Lobby)
* QQ Group: 155841680, 392443393
32 changes: 0 additions & 32 deletions README_ZH.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Documents

* Quick Start
* [Quick start](quick-start.md)
* [Install php agent](install-agent.md)
37 changes: 37 additions & 0 deletions docs/install-agent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
When building directly from Git sources or after custom modifications you might also need:
* libuuid
* gcc 4.9+
* pkg-config
* grpc
* protoc
* php 7+


# Build

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

2. build report_client
```shell
cd src/report
make
```

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

# Run
restart and run report_client
```shell
./report_client 120.0.0.1:11800 /tmp
```
1 change: 1 addition & 0 deletions docs/quick-start.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# todo
File renamed without changes.
File renamed without changes.
36 changes: 0 additions & 36 deletions sky-php7ext/.gitignore

This file was deleted.

32 changes: 0 additions & 32 deletions sky-php7ext/README.md

This file was deleted.

30 changes: 0 additions & 30 deletions sky-php7ext/README_ZH.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f4f0507

Please sign in to comment.