Statistics
5
0
0
96d
Badges
Tags
utils
Dependencies

Crawler Detect Extension for Nette

Scrutinizer Code Quality Total Downloads Latest Stable Version License Monthly Downloads composer.lock

Package Installation

The best way to install Nette Calendar is using Composer:

$ composer require galek/nette-calendar

Packagist - Versions

Usage

config.neon

extensions: 
    crawlerDetect: Galek\CrawlerDetect\DI\CrawlerDetectExtension

presenter

class HomepagePresenter {

    /**
     * @var Galek\CrawlerDetect\CrawlerDetect @inject
     */
    public $crawlerDetect;
    ...
    
    public function actionDefault()
    {
        ...
        if ($this->crawlerDetect->isCrawler()) {
            ...
        }
        ...
    }
}

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com