PHP code example of fungku / markup-validator-php

1. Go to this page and download the library: Download fungku/markup-validator-php 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/ */

    

fungku / markup-validator-php example snippets


use Fungku\MarkupValidator\FeedValidator;

$validator = new FeedValidator();

$feed = 'http://www.w3.org/QA/news.rss';

if ($validator->validate($feed)) {
    echo "Feed is valid";
} else {
    echo "Feed is not valid.";
}
bash
composer