When fetching with $api = MediawikiApi::newFromPage('https://sq.wikinews.org/'); I get the following error:
"String could not be parsed as XML" at /vendor/addwiki/mediawiki-api-base/src/MediawikiApi.php line 80 Warning: SimpleXMLElement::__construct(): Entity: line 419: parser error: Entity 'reg' not defined at vendor/addwiki/mediawiki-api-base/src/MediawikiApi.php:80
I guess newFromPage should be changed to not treat HTML as XML and not use SimpleXml.