PHP code example of mrstacy / html2mht

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

    

mrstacy / html2mht example snippets


$html2mht = new Html2Mht(<FULL PATH TO INPUT HTML FILE>);
$html2mht->generateMhtFile(<FULL PATH TO OUTPUT MHT FILE>);

php vendor/phpunit/phpunit/phpunit