Download the PHP package c33s/construction-kit-bundle without Composer
On this page you can find all versions of the php package c33s/construction-kit-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download c33s/construction-kit-bundle
More information about c33s/construction-kit-bundle
Files in c33s/construction-kit-bundle
Package construction-kit-bundle
Short Description Attach files to any (Propel) object using Symfony2
License MIT
Homepage https://github.com/vworldat/ConstructionKitBundle
Informations about the package construction-kit-bundle
Enable rapid configuration of Symfony2 project dependencies
Is this for me?
Answer "yes" if those criteria match your requirements:
- developing/maintaining several Symfony projects
- using the same (or subsets of the same) bundles in most projects
- using the same (or subsets of the same) assets in the same places in most projects
- tired of enabling the same bundles and adding the same bundle configuration over and over again for each project
- necessity to keep parts of your projects in sync/up to date: make new bundles or assets available in ALL projects without having to do it manually
This is intended both for rapid development and long-term maintenance of reusable components in your own projects.
What does it do?
ConstructionKitBundle intends to ease project dependency maintenance by providing so-called building blocks that are used inside your projects.
A building block is a single class that provides information about:
- One or more Symfony bundles that are needed by this building block
- Optional YAML default configurations to include
- Optional (pre-filled) YAML configuration files to provide easily editable default configuration
- Optional assets (think js, css, ...), divided into groups that are available as assetic subsets
- Optional parameters to add to parameters.yml and parameters.yml.dist
Building blocks can be auto-installed upon recognition (configurable).
Composer integration
Since ConstructionKit is set out to reduce the amount of manual tampering it allows to register building blocks in composer packages. Packages found by composer will be auto-discovered, so you only have to do 2 things:
- Add composer dependencies and run
composer update
- Run
app/console construction-kit:refresh
to auto-install bundles, configuration and assets
Installation
construction-kit relies on c33s/symfony-config-manipulator-bundle
to split and manage configuration files.
This will probably refactor most of your configuration structure inside app/config/
.
Please head over to c33s/symfony-config-manipulator-bundle
to learn more and DO NOT FORGET TO COMMIT YOUR CONFIGURATION BEFORE PROCEEDING.
Require c33s/construction-kit-bundle
in your composer.json
file:
or, if you are using 'composer-yaml':
Register both needed bundles in app/AppKernel.php
:
Usage
After enabling both bundles, an initial file setup is needed. Just run the following command: app/console construction-kit:refresh
You will see something like this:
Do as told and run app/console construction-kit:refresh
again. Then check the file app/config/config/c33s_construction_kit.map.yml
, which should contain the following configuration:
more to come.
All versions of construction-kit-bundle with dependencies
c33s/composer-construction-kit-installer Version ~0.2
c33s/symfony-config-manipulator-bundle Version ~0.2
symfony/monolog-bundle Version ~2.4
symfony/symfony Version ~2.3|~3.0
sensio/generator-bundle Version ~2.3|~3.0