sanmai/callable-reflection 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2025-07-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固