PHP code example of daison / clover-to-html

1. Go to this page and download the library: Download daison/clover-to-html 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/ */

    

daison / clover-to-html example snippets


return [
    'title'   => 'My Project Code Coverage',
    'ignores' => [
        'exact' => [
            '});',
            ']);',
            ');',
            '}',
            '{',
            ']',
            '[',
            ') {',
            'return [',
            '];',
            'try {',
        ],
        'regex' => [
            'catch( |)\((.*)\)',
            '\}( |)else( |)\{',
        ],
    ],
    'badges' => [
        'Repositories' => 'Repositories/', // single
        'Controllers'  => ['Controllers/Api', 'Controllers/Http'], // grouping

        // or regex sample
        'User'         => '(.*)User(.*)',
        'Payment       => ['/Payment', 'Payment(Controller|Repository)'],
    ],
];