PHPackages                             usualdesigner/yii2-hitable-behavior - 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. usualdesigner/yii2-hitable-behavior

AbandonedArchivedYii2-extension[Utility &amp; Helpers](/categories/utility)

usualdesigner/yii2-hitable-behavior
===================================

109918PHP

Since Jul 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/usualdesigner/yii2-hitable-behavior)[ Packagist](https://packagist.org/packages/usualdesigner/yii2-hitable-behavior)[ RSS](/packages/usualdesigner-yii2-hitable-behavior/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Hitable behavior for Yii2
=========================

[](#hitable-behavior-for-yii2)

### Installation

[](#installation)

Run command

```
composer require usualdesigner/yii2-hitable-behavior "dev-master"

```

or add

```
"usualdesigner/yii2-hitable-behavior": "dev-master"

```

to the require section of your `composer.json` file.

### Main migration

[](#main-migration)

```
$this->createTable('{{%hits}}', [
    'hit_id' => $this->primaryKey(),
    'user_agent' => $this->string()->notNull(),
    'ip' => $this->string()->notNull(),
    'target_group' => $this->string()->notNull(),
    'target_pk' => $this->string()->notNull(),
    'created_at' => $this->integer()->notNull(),
]);
```

### Configuring

[](#configuring)

```
