承接 pinpoint-apm/pinpoint-php-aop 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pinpoint-apm/pinpoint-php-aop

最新稳定版本:v4.0.1

Composer 安装命令:

composer require pinpoint-apm/pinpoint-php-aop

包简介

A simple Aop library via php-parse

README 文档

README

Build LICENSE

Issues

https://github.com/pinpoint-apm/pinpoint-c-agent/labels/php-aop

Requirements

  • php 7.0 ~ php 8.3
  • ext-pinpoint_php: "^0.5.2" ( Guide ???? )

How to use

1. Import from packagist

composer require pinpoint-apm/pinpoint-php-aop

2. Add pinpoint entry into your entry file(eg: index.php)

<?php require_once __DIR__."/../vendor/autoload.php"; // A writable path for caching AOP code, default is /tmp // define('AOP_CACHE_DIR',__DIR__.'/../Cache/'); // optional  // API for register your own plugins eg: define('PP_REQ_PLUGINS', Pinpoint\Plugins\DefaultRequestPlugin::class); require_once __DIR__. '/../vendor/pinpoint-apm/pinpoint-php-aop/auto_pinpointed.php';

Write your own plugins

Only for developers

Steps

  1. Write your own plugins(if needs). Here are some plugins template.
  1. Use AspectClassHandle to combine target class with plugin class.
 $classHandler = new AspectClassHandle(\yii\web\UrlManager::class); $classHandler->addJoinPoint('parseRequest', \Pinpoint\Plugins\yii2\UrlRule::class); $cls[] = $classHandler;
  1. Extend DefaultRequestPlugin and implement joinedClassSet.

Examples:

Our test project

How it works

  • Use nikic/PHP-Parser generating glue layer code
  • Use namespace replace to reuse plugins or hook build-in class/function
  • Intercept php classloader to redirect origin class to new class

pinpoint-php-aop wrappers your class with an onBefore/onEnd/onException suite.

Blog

Supported libraries/framework

Libraries
Type Name Version
Built-in curl
memcached 3.2.0
mysqli
pdo
phpredis 6.0.2
apcu
User guzzlehttp 8.0.x-dev
predis 3.0
mongodb v1.19.x
Frameworks
Name Version
Yii2
wordpress
thinkphp8
laravel

Data Chart Map

how it works

There are some examples into lib/pinpoint/test/Comparison/pinpoint/test

Needs Help/Issues

create an issue

Copyright

Copyright 2024-present NAVER Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 

统计信息

  • 总下载量: 36.97k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 12
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固