sanmai/callable-reflection
最新稳定版本:1.0
Composer 安装命令:
composer require sanmai/callable-reflection
包简介
ReflectionFunctionAbstract for any callable
README 文档
README
Get ReflectionFunctionAbstract for any callable.
Installation
composer require sanmai/callable-reflection
Usage
use CallableReflection\CallableReflection; $reflection = new CallableReflection(); $params = $reflection->reflect($callable)->getNumberOfParameters();
Works with closures, functions, methods, invokable objects, and first-class callables.
If it doesn't work with your callable, file an issue.
How is this better than ReflectionFunction(Closure::fromCallable($callable))?
Crickets
Well... you can dependency inject it I guess?
I was experimenting with Claude Code, and I was interested in whether it could build something like this entirely from my request. I didn't think very hard whenever it made sense, and it went from a few-sentence request to... Done. It turns out it can.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2025-07-26