Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Rss Client Laravel Package

desarrolla2/rss-client

Deprecated RSS/Atom feed fetcher (will not be updated; migrate to FastFeed). Simple, fast RSS2.0/Atom1.0 client: add multiple feed URLs under a group name and fetch entries, with optional caching via desarrolla2/cache adapters.

View on GitHub
Deep Wiki
Context7

Custom logic for process RSS

Maybe you need your custom logic for feed process. In this case you need to create a custom processor that implements ProcessorInterface

<?php

use Desarrolla2\RSSClient\Parser\Processor\ProcessorInterface;

class CustomProcessor implements ProcessorInterface
{
    /**
     * [@var](https://github.com/var) array
     */
    protected $mediaTypes = array(
        'content',
        'keywords',
        'thumbnail',
        'category',
        'comments',
    );

    /**
     * [@param](https://github.com/param) NodeInterface $node
     * [@param](https://github.com/param) \DOMElement   $item
     *
     * [@return](https://github.com/return) mixed|void
     */
    public function execute(NodeInterface $node, \DOMElement $item)
    {
        foreach ($this->mediaTypes as $mediaType) {
            /* Implement getNodeValueByTagName yourself */
            $value = $this->getNodeValueByTagName($item, $mediaType);
            if ($value) {
                $node->setExtended(
                    $mediaType,
                    $value
                );

            }
        }
    }
}

And them push it on the top of processors stack.

<?php

use Desarrolla2\RSSClient\RSSClient;

$client = new RSSClient();
$client->pushProcessor( new CustomProcessor($client->getSanitizerHandler()));

Now you can continue normally.

<?php

$client->fetch();

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours