fungku/markup-validator-php

A markup validator, including RSS and atom feeds.

v0.2.1 2015-06-25 22:36 UTC

This package is not auto-updated.

Last update: 2024-04-13 15:17:29 UTC


README

Someday I'll add other things, but right now it is a feed validator.

Install

composer require fungku/markup-validator-php

RSS and atom feed validator

Uses W3.org feed validator to check if there are any errors in the feed.

Usage

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.";
}