PHPackages                             tourze/bundle-dependency - 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. [Framework](/categories/framework)
4. /
5. tourze/bundle-dependency

ActiveLibrary[Framework](/categories/framework)

tourze/bundle-dependency
========================

Bundle dependency resolver for Symfony

1.0.0(6mo ago)041.5k20MITPHPCI failing

Since Mar 23Pushed 5mo ago1 watchersCompare

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

READMEChangelog (3)Dependencies (4)Versions (4)Used By (20)

Bundle Dependency
=================

[](#bundle-dependency)

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

[![Latest Version](https://camo.githubusercontent.com/c9bfab690d058744b44188d5854609e0fcb3937000d2cc81370ea73110b394ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f62756e646c652d646570656e64656e63792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/bundle-dependency)[![Total Downloads](https://camo.githubusercontent.com/7689f40d86fd7dd1accfbd4716ceab0459edbe183f05b58430db8a2150c490a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f62756e646c652d646570656e64656e63792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/bundle-dependency)[![PHP Version](https://camo.githubusercontent.com/b56c4b9cbe0b158eead1b7ed41691f40e675340e7ac8ae199940f12932438b71/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f62756e646c652d646570656e64656e63792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/bundle-dependency)[![License](https://camo.githubusercontent.com/6c0be7255d9fb952fee2c39bbd0060e2b4b8280f6c20b58a6c28bd35c43d2418/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f75727a652f62756e646c652d646570656e64656e63792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/bundle-dependency)

A lightweight interface and resolver for managing Symfony bundle dependencies, enabling automatic resolution and circular dependency detection.

Features
--------

[](#features)

- **Simple interface** - Define bundle dependencies with a single method
- **Automatic resolution** - Recursively resolves all bundle dependencies
- **Circular detection** - Prevents circular dependencies (with graceful handling)
- **Environment support** - Control bundle loading per environment (dev, test, prod)
- **Lightweight** - No external dependencies except PHP 8.1+

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

[](#installation)

```
composer require tourze/bundle-dependency
```

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

[](#quick-start)

### 1. Implement the interface in your bundle

[](#1-implement-the-interface-in-your-bundle)

```
