PHPackages                             massive/build-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. massive/build-bundle

ActiveLibrary

massive/build-bundle
====================

Massive Art Build Bundle

1.0.0(4mo ago)471.4M—5.3%10[3 issues](https://github.com/massiveart/MassiveBuildBundle/issues)8MITPHPPHP &gt;=8.2CI passing

Since Aug 13Pushed 3mo ago10 watchersCompare

[ Source](https://github.com/massiveart/MassiveBuildBundle)[ Packagist](https://packagist.org/packages/massive/build-bundle)[ Docs](https://github.com/massiveart/MassiveBuildBundle)[ RSS](/packages/massive-build-bundle/feed)WikiDiscussions 1.0 Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (20)Used By (8)

Massive Build Bundle
====================

[](#massive-build-bundle)

[![Test Workflow Status](https://camo.githubusercontent.com/1fad59ed5e06c4bde44190db026338eea38fba30e0904367646ab9bb2411a0b4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6173736976656172742f4d6173736976654275696c6442756e646c652f746573742d6170706c69636174696f6e2e79616d6c)](https://github.com/massiveart/MassiveBuildBundle/actions)

The Massive Build Bundle provides a `massive:build` command which runs build targets.

Targets are classes which execute arbitary code, and are registred in the dependency injection container via. tags. Targets can depend on other targets.

Virtual targets can be created in you applications configuration file. These virtual targets simply declare depenencies, enabling you to configure custom build processes.

The aim of this bundle is to provide an extensible, decoupled, way of building software project environments, especially in a development context.

If you often find youself executing several Symfony commands consecutively to establish your environment, then this bundle is for you.

*This tool is not mean to replace Make or Ant or Phing. The bundle should only be used to execute build steps which are contained in the client application.*

Defining targets
----------------

[](#defining-targets)

You can define new build targets in you applications configuration file:

```
massive_build:
    targets:
        main:
            dependencies:
                target_one: ~
                target_two: ~
                target_three: ~
        quick:
            dependencies:
                target_one: ~

```

The above will allow you to execute:

```
$ php app/console massive:build main

```

and:

```
$ php app/console massive:build quick

```

Creating build classes
----------------------

[](#creating-build-classes)

You create builder classes in your application / bundles. Each build class should have a specific responsiblity.

A minimal example:

```
