jav-labs / rss-feed-validator
RSS Feed Validator
1.0.0
2026-04-25 12:56 UTC
Requires
- php: ^8.3
- ext-curl: *
- ext-xmlreader: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.95
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^9.0
- symfony/var-dumper: ^7.0
README
A robust PHP library for validating RSS 2.0 feeds against the RSS specification.
Features
- Validates RSS 2.0 feed structure and required elements
- Checks for proper XML formatting
- Validates required channel elements (title, link, description)
- Validates item elements and their required fields
- Provides detailed error messages for validation failures
- Lightweight and straightforward to integrate
Requirements
- PHP 8.3 or higher
- ext-libxml
Installation
composer require jav-labs/rss-feed-validator
Usage
Simple usage example:
use JavLabs\RssFeedValidator\RssFeedValidator; $validation = RssFeedValidator::validate($rssFeedUrl); if ($validation->isValid) { // Feed is valid echo "Feed is valid!"; } else { // Feed is invalid echo "Feed is invalid!"; var_dump($validation->errors); }