- How do I install juststeveking/feed-parser in a Laravel application?
- Install it with Composer using composer require juststeveking/feed-parser. Because 0.0.1 is pre-1.0, pin an exact constraint such as 0.0.1 rather than a caret range. The release notes do not confirm a Laravel service provider or facade, so plan to wire the parser into your application manually and keep it behind your own interface.
- Does juststeveking/feed-parser support both RSS and Atom feeds?
- Yes, the initial 0.0.1 release advertises basic support for both RSS and Atom feeds. That means common channel and entry elements, but not necessarily every namespace or extension. Validate the output against your own feed corpus before relying on it.
- What does juststeveking/feed-parser return, arrays, DTOs, or SimpleXML?
- The public documentation does not specify the return type, so check the source before integrating. It may return arrays, SimpleXMLElement nodes, or a lightweight structure rather than typed DTOs. If you need domain models, budget time for a mapping layer.
- Which Laravel and PHP versions does juststeveking/feed-parser support?
- It is a Composer package for PHP 8.x, and the Laravel blurb suggests it can be used in Laravel applications. There is no confirmed service provider, facade, or config file in the release notes, so framework integration is your responsibility. Test it on your target Laravel version before adopting it.
- Is juststeveking/feed-parser safe for parsing untrusted remote XML feeds?
- The 0.0.1 release does not document XXE protection, entity-expansion limits, or input size guards. Treat remote XML as untrusted: fetch it with your own HTTP client, cap response size, and ensure libxml external entity loading is disabled. Only adopt it for hostile input after reviewing the source and adding safeguards.
- Does juststeveking/feed-parser fetch remote feed URLs itself or parse a string?
- The package is described as zero-dependency, which makes it unlikely to ship its own HTTP client. Prefer passing feed contents as a string or stream you fetched yourself so timeouts, retries, and SSRF policy stay under your control. Confirm the actual method signatures in the source.
- Which feed extensions does juststeveking/feed-parser support, such as Media RSS, iTunes, or Dublin Core?
- Basic RSS and Atom support suggests standard elements only; Media RSS, Dublin Core, iTunes, GeoRSS, and JSON Feed are not advertised. Podcast and content-marketing feeds may drop fields silently or fail. Test with real feeds that use those namespaces before committing.
- Is juststeveking/feed-parser production ready at version 0.0.1?
- 0.0.1 is an initial release with a pre-1.0 API, a single maintainer, and limited documentation. That is acceptable for a spike or an internal adapter behind your own interface, but not ideal as a deeply embedded production dependency. Pin the exact version and be prepared to fork or swap the adapter.
- How are parse errors handled in juststeveking/feed-parser?
- Error behavior is not described in the release notes. It is unclear whether malformed XML throws exceptions, returns a result object, or yields false. Write tests with truncated, mis-encoded, and hostile feeds to see how it behaves before shipping.
- What are alternatives to juststeveking/feed-parser for parsing RSS in Laravel?
- You can use PHP's SimpleXML or XMLReader directly, or evaluate other Composer feed parsers with broader namespace coverage and active maintenance. Compare candidates side by side on your real feed corpus and integration effort. If you only need basic RSS and Atom, a small parser like this can be enough behind your own port.