heymowski/latest-news-reader
Laravel package for reading latest news from RSS/Atom feeds using SimplePie. Add feed sources via Artisan command, migrate a DB table, then fetch and store feed items with a command to load all sources.
dom, curl) and could introduce parsing inconsistencies across PHP versions.spatie/feed, laravel-feed-reader) been considered for comparison?dom, curl, mbstring). Verify these are enabled in your environment.news_sources, news_items tables).composer require heymowski/latest-news-reader
simplepie/simplepie is installed (transitive dependency).php artisan migrate
news_items table structure).php artisan vendor:publish --tag="lnr-config" (check if supported)..env or config files.php artisan LNR-Sources:AddNewsSource --url="https://example.com/rss" --name="Example News"
php artisan LNR-Items:ReadAll
ReadAll via Laravel’s task scheduler (app/Console/Kernel.php) for periodic updates.$schedule->command('LNR-Items:ReadAll')->hourly();
news_items table is backed up; feeds are mutable (e.g., URLs change, content updates).Log::error() in custom service classes if extending functionality.ReadAll).LNR-Items:ReadAll as a queued job).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Feed URL changes/breaks | Missing or stale news items | Implement health checks; alert on failures. |
| DB connection issues | Failed feed storage | Retry logic with exponential backoff. |
| Malformed XML in feeds | Parsing errors/crashes | Validate feeds before processing; log errors. |
| High feed volume | Slow parsing/DB timeouts | Queue processing; optimize batch sizes. |
| Package abandonment | Unpatched vulnerabilities | Fork critical components; monitor dependencies. |
How can I help you explore Laravel packages today?