Skip to content

Code update

Latest
Compare
Choose a tag to compare
@KalimeroMK KalimeroMK released this 30 May 17:24

• Switched from SimpleXMLElement to SimplePie for more robust RSS feed parsing.
• Simplified feed parsing logic with SimplePie.
• Simplified image extraction using regex directly from feed item descriptions.
• Removed dependency on DOMDocument and DOMXPath for HTML parsing.
• Maintained robust image saving logic to download and save images to storage.
• Removed fetchContentUsingCurl and convertToAbsoluteUrl methods, reducing code complexity.
• Simplified error handling and logging for RSS feed parsing.
• Added dependency on Laravel’s Container for creating SimplePie instances, ensuring better integration with Laravel’s service container.