PHP code example of hosmelq / ext-anydoc

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

    

hosmelq / ext-anydoc example snippets




$markdown = anydoc_to_markdown('report.docx');

$bytes = file_get_contents('report.docx');
$fromBytes = anydoc_to_markdown_bytes($bytes);

$csv = file_get_contents('data.csv');
$fromCsv = anydoc_to_markdown_bytes($csv, 'csv');

$document = anydoc_to_document($bytes);