Rss and Yii2

I am trying to use this rss class with Yii2 but I have this error


Undefined index: TITLE  

 in C:\xampp\htdocs\rss\vendor\rss\FeedParser.php (these lines) 

 $this->channels[$this->currentTag] .= strip_tags($this->unhtmlentities((trim($data))));

xml_parse($this->xmlParser, $data, $lastPiese)

How can I solve it.

I want to ask also if there is a good extension to use to read Rss

It’s an error in that class’s code. $this->channels[$this->currentTag] should be initialized before assigning to it.

I understand it,I found another similar error so I decided to use https://github.com/yurkinx/yii2-rss