承接 mulertech/class-manipulation 相关项目开发

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

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

mulertech/class-manipulation

最新稳定版本:v1.0.4

Composer 安装命令:

composer require mulertech/class-manipulation

包简介

This Class manipulate classes

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub PHPStan Action Status GitHub Security Action Status Total Downloads Test Coverage

This Class manipulate classes

Installation

Two methods to install Application package with composer :

Add to your "composer.json" file into require section :

"mulertech/class-manipulation": "^1.0"

and run the command :

php composer.phar update

Run the command :

php composer.phar require mulertech/class-manipulation "^1.0"

Usage


Get all the Reflection methods of the reflection class given (not include the parents methods or others methods) :
$reflectionMethods = ClassManipulation::getClassReflectionMethods(new ReflectionClass(Foo::class));

Get the class name in lower case :
$className = ClassManipulation::getClassNameLower(/complete/namespace/to/class/ClassName::class);
// classname

Get the properties of a class given (not include the parents properties) :
$properties = ClassManipulation::getClassProperties(/complete/namespace/to/class/ClassName::class);
// ['property1', 'property2']

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-03