PHP code example of fof / follow-tags
1. Go to this page and download the library: Download fof/follow-tags 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/ */
fof / follow-tags example snippets
use FoF\FollowTags\Extend\Subscription;
return [
(new Flarum\Extend\Conditional())
->whenExtensionEnabled('fof-follow-tags', fn () => [
(new Subscription())->attribute('myAttribute'),
]),
];