Download the PHP package kode/aop without Composer

On this page you can find all versions of the php package kode/aop. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package aop

Kode/AOP - PHP 8.1+ 轻量级 AOP 框架

PHP Version

基于 PHP 8.1+ 原生属性(Attribute)实现的轻量级、高性能、高扩展性 AOP(面向切面编程)组件。

✨ 特性

📦 安装

🚀 快速开始

1. 创建切面类

2. 配置 AOP 内核

3. 使用代理对象

📖 详细文档

通知类型

Before(前置通知)

在目标方法执行前执行,可以修改方法参数或执行预处理逻辑。

After(后置通知)

在目标方法执行后执行(无论是否抛出异常),适用于资源清理、日志记录等场景。

Around(环绕通知)

环绕目标方法执行,可以完全控制方法的执行流程。

优先级控制

使用 #[Priority] 注解控制切面执行顺序,数字越小优先级越高。

切入点表达式

支持的切入点表达式语法:

表达式 说明 示例
execution(* Class->method(..)) 执行方法 execution(* UserService->createUser(..))
execution(* Class->*(..)) 类的所有方法 execution(* UserService->*(..))
execution(* Namespace\*->*(..)) 命名空间下所有类的所有方法 execution(* App\Service\*->*(..))
within(Namespace\*) 命名空间下所有类 within(App\Controller\*)

通配符说明:

JoinPoint API

JoinPoint 类提供了丰富的方法来获取方法调用的上下文信息:

ProceedingJoinPoint API

ProceedingJoinPoint 继承自 JoinPoint,额外提供了控制原方法执行的能力:

🏗️ 核心组件

🔧 框架集成

Laravel 集成

Symfony 集成

Hyperf 集成

🧪 测试

运行测试:

运行代码覆盖率:

静态分析:

📋 系统要求

📄 许可证

Apache License 2.0

🤝 贡献

欢迎提交 Issue 和 Pull Request!

📮 联系方式


All versions of aop with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
kode/attributes Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kode/aop contains the following files

Loading the files please wait ...