PHPackages                             flsouto/textract - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. flsouto/textract

ActiveLibrary[CLI &amp; Console](/categories/cli)

flsouto/textract
================

Extracts and combines multiline comments from php files

1.0.0(9y ago)129PHP

Since Nov 5Pushed 9y agoCompare

[ Source](https://github.com/flsouto/textract)[ Packagist](https://packagist.org/packages/flsouto/textract)[ RSS](/packages/flsouto-textract/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

textract
========

[](#textract)

Overview
--------

[](#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
------------

[](#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
-----

[](#usage)

Say we have created two scripts containing multiline comments:

source1.php:

```
