2017 © Pedro Peláez
 

yii2-extension yii2-crawler-detect

Yii2 extension for CrawlerDetect library

image

alikdex/yii2-crawler-detect

Yii2 extension for CrawlerDetect library

  • Wednesday, August 3, 2016
  • by AlikDex
  • Repository
  • 0 Watchers
  • 2 Stars
  • 452 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 15 % Grown

The README.md

yii2-device-detect

Yii2 extension for CrawlerDetect library., (*1)

To use it just require this extension in your composer.json file:, (*2)

"alikdex/yii2-crawler-detect": "1.0",

And then add it to your components configuration in Yii2:, (*3)

'bootstrap' => ['crawlerdetect'],
'components' => [
    'crawlerdetect' => [
        'class' => 'alikdex\crawlerdetect\CrawlerDetect',
        'setParams' => true, // optional, bootstrap initialize requred
    ],
]

Some basic detections are available in Yii's params:, (*4)

var_dump(Yii::$app->params['isCrawler']);

// bool(false)

You can also use it from anywhere in your code, calling Crawler-Detect's API:, (*5)

\Yii::$app->crawlerdetect->isCrawler();

/*Check all available methods here: https://github.com/JayBizzle/Crawler-Detect */

The Versions

03/08 2016

dev-master

9999999-dev

Yii2 extension for CrawlerDetect library

  Sources   Download

MIT License

The Requires

 

by Alik Dexor

extension yii2 crawler detect

03/08 2016

1.0

1.0.0.0

Yii2 extension for CrawlerDetect library

  Sources   Download

MIT License

The Requires

 

by Alik Dexor

extension yii2 crawler detect