PHPackages                             tourze/workerman-doctrine-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. tourze/workerman-doctrine-bundle

ActiveLibrary

tourze/workerman-doctrine-bundle
================================

Workerman + DoctrineORM

0.0.3(4mo ago)014MITPHPCI passing

Since Apr 21Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/tourze/workerman-doctrine-bundle)[ Packagist](https://packagist.org/packages/tourze/workerman-doctrine-bundle)[ RSS](/packages/tourze-workerman-doctrine-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (18)Versions (4)Used By (0)

Workerman Doctrine Bundle
=========================

[](#workerman-doctrine-bundle)

[English](README.md) | [中文](README.zh-CN.md)

[![Latest Version](https://camo.githubusercontent.com/5b31b847641031bcb8e785c664dd45a0f063040c12fcf332128884c9d8b51bf0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f776f726b65726d616e2d646f637472696e652d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/workerman-doctrine-bundle)[![Total Downloads](https://camo.githubusercontent.com/477db23e4c3ab4aca62639018c430aa44f74195503bd95f8389670f5ce46ae68/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f776f726b65726d616e2d646f637472696e652d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/workerman-doctrine-bundle)

A Symfony bundle that provides integration between Workerman and Doctrine ORM, ensuring proper entity manager lifecycle management in long-running processes.

Features
--------

[](#features)

- **Entity Manager Monitoring**: Automatically monitors Doctrine EntityManager state in Workerman processes
- **Process Protection**: Automatically stops Workerman processes when EntityManager is closed to prevent data corruption
- **Seamless Integration**: Works with both HTTP and Console events
- **Zero Configuration**: Works out of the box with minimal setup

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

[](#installation)

```
composer require tourze/workerman-doctrine-bundle
```

Quick Start
-----------

[](#quick-start)

1. Add the bundle to your `config/bundles.php`:

```
