PHP code example of mfn / docblock-normalize
1. Go to this page and download the library: Download mfn/docblock-normalize library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mfn / docblock-normalize example snippets
namespace Foo;
use Bar as Baz;
/**
* @param Foo $param1
* @param Bar $param2
* @param Baz $param3
* @param \Foo $param4
* @param string $param5
*/
$parser = new \Mfn\DocblockNormalize\Parser(
new \Mfn\DocblockNormalize\TokenParser
);
$docblocks = $parser->parseFile('sample.php');
echo $docblocks[0]->getNormalizedContent();
/**
* @param Foo\Foo $param1
* @param Foo\Bar $param2
* @param Bar $param3
* @param Foo $param4
* @param string $param5
*/