承接 loophp/phptree-ast-generator 相关项目开发

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

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

loophp/phptree-ast-generator

Composer 安装命令:

composer require loophp/phptree-ast-generator

包简介

Generates AST of a PHP script in DOT (Graphviz) or Image (PNG, JPG, SVG) formats.

README 文档

README

Latest Stable Version GitHub stars Total Downloads GitHub Workflow Status Scrutinizer code quality Code Coverage Mutation testing badge License Donate!

PHPTree AST Generator

Description

An AST generator based on loophp/phptree.

Demo

Requirements

Installation

composer require loophp/phptree-ast-generator

Usage

Very basic usage

./path/to/bin/ast generate /path/to/php/file.php

To generate the dot script for Graphviz

./path/to/bin/ast generate src/Command/Generator.php

Use the -c option to generate a fancy export, user-friendly and less verbose.

./path/to/bin/ast generate -c src/Command/Generator.php

To generate an image

./path/to/bin/ast generate -c -t image -f png -d graph.png src/Command/Generator.php

The generator supports 3 PHP parsers:

Use the -p option to change it, default is nikic.

./path/to/bin/ast generate -p microsoft -t image -d graph.svg src/Command/Generator.php

You will find more documentation within the help of the command:

./path/to/bin/ast generate -h

Contributing

Feel free to contribute to this library by sending Github pull requests. I'm quite reactive :-)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固