fedi-feed-router/app/Contracts/HomepageParserInterface.php

26 lines
534 B
PHP
Raw Permalink Normal View History

2025-06-29 21:33:18 +02:00
<?php
namespace App\Contracts;
interface HomepageParserInterface
{
/**
* Check if this parser can handle the given homepage URL
*/
public function canParse(string $url): bool;
/**
* Extract article URLs from homepage HTML
*/
public function extractArticleUrls(string $html): array;
/**
* Get the homepage URL for this source
*/
public function getHomepageUrl(): string;
/**
* Get the source name for this parser
*/
public function getSourceName(): string;
}