定制 ensostudio/reflection-file 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ensostudio/reflection-file

Composer 安装命令:

composer require ensostudio/reflection-file

包简介

Reports information about a PHP file: constants, functions, interfaces, traits and classes

README 文档

README

Class reflect information about entities in PHP file: constants, functions, interfaces, traits and classes.

Usage example

Data bridge from PHP to third-party Java/С/Pascal applications:

#!/usr/bin/php
<?php
require_once __DIR__ .'/vendor/autoload.php';

$options = getopt('f:', ['file:']);
$response =['status' => 'error', 'error' => null, 'data' => []];

$file = $options['file'] ?? ($options['f'] ?? false);
if (!$file) {
  $response['error'] = 'Required option -f (or --file) not set or empty';
  die(json_encode(response));
}

if (dirname($file) === '.') {
   $file = getcwd() . '/' . $file;
}
if (!file_exists($file)) {
  $response['error'] = "File {$file} not found";
  die(json_encode(response));
}

$response['status'] = 'success';
$response['data'] = Ensostudio\ReflectionFile::export($file, true);
echo json_encode(response);

Install

composer require ensostudio\reflection-file

license

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固