PHP code example of piradoiv / munchitos

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

    

piradoiv / munchitos example snippets



// First you'll have to load composer and create
// a Munchitos instance.
u want to do it,
// set the source URL from where you downloaded
// the HTML contents.
$munchitos->url("http://www.example.com/foo/bar.html");

// Fill it with the HTML
$html = '<html><body><p>Hello World!</p></body></html>';
$munchitos->html($html);

// And start calling any information you need.
echo $munchitos->title();