PHP code example of mpc / mpc-rss
1. Go to this page and download the library: Download mpc/mpc-rss library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mpc / mpc-rss example snippets
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\Directive;
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\Mutation;
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationCollection;
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationMode;
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope;
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceScheme;
use TYPO3\CMS\Core\Type\Map;
return Map::fromEntries([
Scope::frontend(),
new MutationCollection(
// Restrict to the specific feed image hosts you use rather than a wildcard.
new Mutation(MutationMode::Extend, Directive::ImgSrc, SourceScheme::https),
),
]);