PHPackages                             marbobley/entities-visitor-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. [Database &amp; ORM](/categories/database)
4. /
5. marbobley/entities-visitor-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

marbobley/entities-visitor-bundle
=================================

Manage visitor connexion information in Doctrine entities

V1.3.0(3mo ago)013MITPHP

Since Dec 30Pushed 3mo agoCompare

[ Source](https://github.com/marbobley/entities-visitor-bundle)[ Packagist](https://packagist.org/packages/marbobley/entities-visitor-bundle)[ RSS](/packages/marbobley-entities-visitor-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (0)

entities-visitor-bundle
=======================

[](#entities-visitor-bundle)

Package to manage visitors with DB persistence in Symfony

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

[](#installation)

composer require marbobley/entities-visitor-bundle

Usage
-----

[](#usage)

Create an entity Visitor and extends it from VisitorInformation

- Create the migration script: symfony console make:migration
- Migrate the script : symfony console doctrine:migrations:migrate

When someone visits your site, the event listener will create an entry into the VisitorInformation table

Features
--------

[](#features)

Currently, the bundle only supports Doctrine ORM.

### Column saved :

[](#column-saved-)

- client ip
- user Agent
- visited at
- method
- route
- control
- path

### Setting :

[](#setting-)

Create a config file :

- In config/packages/entities\_visitor\_bundle.yaml

```
entities_visitor_bundle:
    enable: false #To activate or desactive the check of visitor

```

Example
-------

[](#example)

```
