PHP code example of varunsridharan / wp2github-md

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

    

varunsridharan / wp2github-md example snippets



kdown = \WP2Github_MD\Converter::convert(file_get_contents(__DIR__.'/readme.txt'),'your-plugin-slug');
file_put_contents(__DIR__.'/readme.md',$markdown);