定制 marbobley/entities-visitor-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

marbobley/entities-visitor-bundle

最新稳定版本:V1.3.0

Composer 安装命令:

composer require marbobley/entities-visitor-bundle

包简介

Manage visitor connexion information in Doctrine entities

README 文档

README

Package to manage visitors with DB persistence in Symfony

Installation

composer require marbobley/entities-visitor-bundle

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

Currently, the bundle only supports Doctrine ORM.

Column saved :

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

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

<?php

namespace App\Entity;

use App\Repository\VisitorInformationRepository;
use Doctrine\ORM\Mapping as ORM;
use Marbobley\EntitiesVisitorBundle\Model\VisitorInformation as VisitorInformationModel;

#[ORM\Entity(repositoryClass: VisitorInformationRepository::class)]
class VisitorInformation extends VisitorInformationModel
{
    #[ORM\Id]
    #[ORM\GeneratedValue]
    #[ORM\Column]
    private ?int $id = null;

    public function getId(): ?int
    {
        return $this->id;
    }
}

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固