定制 netbrothers-gmbh/version-bundle 二次开发

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

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

netbrothers-gmbh/version-bundle

最新稳定版本:v4.0.0

Composer 安装命令:

composer require netbrothers-gmbh/version-bundle

包简介

Trigger based version tables with MariaDB/MySQL and Doctrine

README 文档

README

Latest Stable Version Total Downloads License Build Status

This hybrid package works as a Symfony bundle or as a standalone PHP package for managing versioned tables in MariaDB and MySQL databases using Doctrine. It automatically creates versioning triggers for your database tables.

Note: This package is designed to work specifically with MariaDB/MySQL. It is not compatible with other database systems like PostgreSQL or SQLite.

Features

  • Creates and maintains _version tables for your Doctrine entities.
  • Automatically generates INSERT and UPDATE triggers.
  • Works as a native Symfony Bundle.
  • Works as a standalone package in any PHP project with a PSR-11 container.
  • Compatible with Symfony 7.4 / 8.x and Doctrine DBAL 4.

Installation

composer require netbrothers-gmbh/version-bundle

Quick Start (Symfony Bundle)

  1. Add a version column to your entity using the provided trait.
  2. Run the command to generate version tables and triggers:
    php bin/console netbrothers:version

Quick Start (Standalone Package)

  1. Create a container file (e.g., config/container.php) that returns your PSR-11 container with a configured Doctrine EntityManagerInterface.
  2. Run the command and pass the container file path:
    vendor/bin/netbrothers-version --container-file=config/container.php

Documentation

For detailed instructions on installation, configuration, and usage (both for Symfony and standalone mode), please see the full documentation.

License

This bundle is released under the MIT license. See the bundled LICENSE file for details.

Authors

NetBrothers Logo

统计信息

  • 总下载量: 3.36k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固