承接 flsouto/textract 相关项目开发

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

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

flsouto/textract

Composer 安装命令:

composer require flsouto/textract

包简介

Extracts and combines multiline comments from php files

README 文档

README

Overview

This command line tool allows you to extract multiline comments from php source files producing a string with all matched comments. This will not extract doc blocks, only texts between /* and */.

Installation

Either clone this repo or use composer:

composer require flsouto/textract

For convenience I recommend you create an alias to the "process" script:

alias textract='php /path/to/flsouto/textract/process.php'

Usage

Say we have created two scripts containing multiline comments:

source1.php:

<?php

/*
This line and
this other line
must be extracted
*/
function test(){
	return '';
}

/* 
This line should also be extracted
*/

source2.php:

<?php

/*
More text from source2
*/

Now, if we run textract from the command line:

textract source1.php source2.php

We get this output:

This line and
this other line
must be extracted

This line should also be extracted

More text from source2

Instead, we could write:

textract source1.php source2.php > output.md

And we would have the output saved to the output.md file.

Final thoughts

I use this utility for producing documentations out of the source code itself because I think it speeds up the process a lot. Also, if you are interested in this kind of thing, you should take a look at this other utility I created which allows you to extract snippets from your source code, execute them, and paste both the snippet and output in your markdown documentation: markdown-x

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-11-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固