PHP code example of xruff / socialtags

1. Go to this page and download the library: Download xruff/socialtags 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/ */

    

xruff / socialtags example snippets


use XRuff\Components\SocialTags\SocialTagsControl;

abstract class BasePresenter extends Nette\Application\UI\Presenter
{
    /** @var SocialTagsControl $socialTagsControlFactory @inject */
    public $socialTagsControlFactory;

    protected function createComponentSocialTags()
    {
        return $this->socialTagsControlFactory->create();
    }
}