1. Go to this page and download the library: Download setasign/php-stub-generator 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/ */
setasign / php-stub-generator example snippets
declare(strict_types=1);
use setasign\PhpStubGenerator\PhpStubGenerator;
use setasign\PhpStubGenerator\Reader\AllFiles;
etapdf-core/library')
);
$output = $generator->generate();
file_put_contents(__DIR__ . '/setapdf-core-stub.php', $output);
class PhpStubGenerator
{
/**
* End of line character(s).
*
* Doesn't change the used EOL character(s) of doc blocks.
*
* @var string
*/
public static $eol = "\n";
/**
* Tab character(s)
*
* @var string
*/
public static $tab = ' ';
/**
* If enabled all generated class constants get a visibility (the generated stubs * @var bool
*/
public static bool $