PHPackages                             gulaandrij/views-counter-bundle - 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. gulaandrij/views-counter-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

gulaandrij/views-counter-bundle
===============================

Symfony document/entity views counter

1.0.2(6y ago)2117[2 PRs](https://github.com/gulaandrij/views-counter-bundle/pulls)MITPHPPHP &gt;=7.1

Since Sep 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/gulaandrij/views-counter-bundle)[ Packagist](https://packagist.org/packages/gulaandrij/views-counter-bundle)[ Docs](https://github.com/gulaandrij/views-counter-bundle)[ RSS](/packages/gulaandrij-views-counter-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (13)Versions (6)Used By (0)

ViewsCounter Bundle
===================

[](#viewscounter-bundle)

ViewsCounter increments views counts for document/entity.

Setup the bundle
----------------

[](#setup-the-bundle)

#### Step 1: Install ViewsCounterBundle

[](#step-1-install-viewscounterbundle)

ViewsCounter bundle is installed using [Composer](https://getcomposer.org/download/).

```
composer require gulaandrij/views-counter-bundle
```

Enable ViewsCounterBundle in your AppKernel:

```
// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...
        new Lavulator\ViewsCounterBundle\CengizhanViewsCounterBundle(),
    ];

    // ...
}
```

#### Step 2: Configure your entity

[](#step-2-configure-your-entity)

```
