PHPackages                             brookinsconsulting/bcknockoutjsbundle - 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. brookinsconsulting/bcknockoutjsbundle

ActiveSymfony-bundle[Framework](/categories/framework)

brookinsconsulting/bcknockoutjsbundle
=====================================

Symfony BcKnockoutJSBundle

0161PHP

Since Feb 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/brookinsconsulting/BcKnockoutJSBundle)[ Packagist](https://packagist.org/packages/brookinsconsulting/bcknockoutjsbundle)[ RSS](/packages/brookinsconsulting-bcknockoutjsbundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

BC KnockoutJS
=============

[](#bc-knockoutjs)

Integrates knockout.js into Symfony2, provides automatic code generation for collections.

1. Example
----------

[](#1-example)

```
$builder
    ->add('items', 'knockout', array(
        'type'         => new OrderItemType(),
        'allow_add'    => true,
        'allow_delete' => true,
        'prototype'    => true,
        'by_reference'  => false,
    ))
;

```

I have added the items field with the KnockoutType, which extends the CollectionType, and handled the same way as a collection.

2. Installation
---------------

[](#2-installation)

### 2.1. Composer:

[](#21-composer)

```
"brookinsconsulting/bcknockoutjsbundle": "dev-master",

```

### 2.2. AppKernel:

[](#22-appkernel)

```
$bundles = array(
    ...
    new BrookinsConsulting\BcKnockoutJSBundle\BcKnockoutJSBundle(),
);

```

### 2.3. config.yml:

[](#23-configyml)

```
imports:
    ...
    - { resource: "@BcKnockoutJSBundle/Resources/config/config.yml" }

# BcKnockoutJS Bundle Configuration
jms_di_extra:
    locations:
        all_bundles: false
        bundles: [BcKnockoutJSBundle]
        directories: ["%kernel.root_dir%/../src"]

```

jms\_di\_extra configuration is unnecessary if you have set all\_bundles to true which is strongly discouraged for performance reasons by the upstream dependant bundle in question.

### 2.4. Add the js to your page.

[](#24-add-the-js-to-your-page)

```

```

### 2.5. Create your view

[](#25-create-your-view)

```
{{ knockout(form.vars.knockout)|raw }}
{{ form_widget(form) }}

```

3. Dependencies
---------------

[](#3-dependencies)

This package does infact depend upon the 'jms/di-extra-bundle' bundle.

For testing purposes the original author used his now private BaseBundle, if you want to test it, you have to include it in your composer.json file too.

4. Stuff to do
--------------

[](#4-stuff-to-do)

- Generator. Right now the command is there, but its not working properly.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fda10bb840bcf345ab87d5ec5bd7c79da0be8858fc1b754db272ca1fc45e49e2?d=identicon)[brookinsconsulting](/maintainers/brookinsconsulting)

---

Top Contributors

[![Padam87](https://avatars.githubusercontent.com/u/776488?v=4)](https://github.com/Padam87 "Padam87 (18 commits)")[![brookinsconsulting](https://avatars.githubusercontent.com/u/617031?v=4)](https://github.com/brookinsconsulting "brookinsconsulting (6 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")[![rjmunro](https://avatars.githubusercontent.com/u/108641?v=4)](https://github.com/rjmunro "rjmunro (1 commits)")

---

Tags

knockoutjsphpsymfonysymfony-bundle

### Embed Badge

![Health badge](/badges/brookinsconsulting-bcknockoutjsbundle/health.svg)

```
[![Health](https://phpackages.com/badges/brookinsconsulting-bcknockoutjsbundle/health.svg)](https://phpackages.com/packages/brookinsconsulting-bcknockoutjsbundle)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
