1. Go to this page and download the library: Download berlioz/php-doc 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/ */
berlioz / php-doc example snippets
$phpDocFactory = new PhpDocFactory;
// To get class PhpDoc
$doc = $phpDocFactory->getClassDoc(ClassOfMyProject::class);
// To get class property PhpDoc
$doc = $phpDocFactory->getPropertyDoc(ClassOfMyProject::class, 'myProperty');
// To get class method PhpDoc
$doc = $phpDocFactory->getMethodDoc(ClassOfMyProject::class, 'myMethod');
// To get function PhpDoc
$doc = $phpDocFactory->getFunctionDoc('myFunction');
$simpleCacheManager = new MySimpleCacheManager;
$phpDocFactory = new PhpDocFactory($simpleCacheManager);
/**
* Test doc.
*
* My description of my method.
* Multi-line.
*
* @test false
* @novalue
* @value Only text
* @test2("test", param1=true, param2="test", param3={"test":"test"})
* @value Second text
* @jsonTest {"test":"test"}
* @jsonArrayTest [{"test":"test"}, {"test2":"test2"}]
*/
$phpDocFactory = new PhpDocFactory;
$phpDocFactory->getParser()->addTagClass('tagName', MyTagClass::class);
bash
$ composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.