PHPackages                             elegisandi/iab-bot-detect - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. elegisandi/iab-bot-detect

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

elegisandi/iab-bot-detect
=========================

Validate user agent against IAB spiders &amp; bot list

v2.1.1(7y ago)213.4kMITPHPPHP &gt;=5.6

Since Sep 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/elegisandi/iab-bot-detect)[ Packagist](https://packagist.org/packages/elegisandi/iab-bot-detect)[ Docs](https://github.com/elegisandi/iab-bot-detect)[ RSS](/packages/elegisandi-iab-bot-detect/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (10)Used By (0)

iab-bot-detect
==============

[](#iab-bot-detect)

Spider/Bot detection using IAB list

Installation
------------

[](#installation)

```
composer require elegisandi/iab-bot-detect

```

Laravel/Lumen Integration
-------------------------

[](#laravellumen-integration)

- Add IAB's service provider to your `config/app.php` providers

    ```
    elegisandi\IABBotDetect\IabServiceProvider::class

    ```
- Add IAB's facade to your `config/app.php` aliases

    ```
    'IAB' => elegisandi\IABBotDetect\IabFacade::class

    ```
- Set IAB credentials in your `.env` file

    ```
      IAB_USER=your-iab-user
      IAB_PASSWORD=your-iab-password

    ```

**If you want to modify the package config, just run:**

```
php artisan vendor:publish --provider=elegisandi\\IABBotDetect\\IabServiceProvider

```

**For Lumen:**

- Register IAB's service provider to your `bootstrap/app.php`

    ```
    $app->register(elegisandi\IABBotDetect\IabServiceProvider::class);

    ```

Configuration
-------------

[](#configuration)

- Generate whitelist and blacklist cache

    ```
    php artisan iab:refresh-list

    ```

    > You may add the option **`--overwrite`** to reset cache.

Basic Usage
-----------

[](#basic-usage)

```
