PHP code example of kauffinger / php-codemap

1. Go to this page and download the library: Download kauffinger/php-codemap 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/ */

    

kauffinger / php-codemap example snippets




declare(strict_types=1);

use Kauffinger\Codemap\Config\CodemapConfig;
use Kauffinger\Codemap\Enum\PhpVersion;

return CodemapConfig::configure()
    ->withScanPaths([
        __DIR__.'/src',
        __DIR__.'/tests',
    ])
    ->withPhpVersion(PhpVersion::PHP_8_3);

return CodemapConfig::configure()
    ->withScanPaths([
        __DIR__.'/app/Models',
        __DIR__.'/app/Services',
        __DIR__.'/modules',
    ]);
bash
composer 
bash
./vendor/bin/codemap --php-version=8.1