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

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

padam87/knockout-js-bundle
==========================

Symfony KnockoutJSBundle

61084PHP

Since Jan 31Pushed 12y ago1 watchersCompare

[ Source](https://github.com/Padam87/KnockoutJSBundle)[ Packagist](https://packagist.org/packages/padam87/knockout-js-bundle)[ RSS](/packages/padam87-knockout-js-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

KnockoutJS Bundle
=================

[](#knockoutjs-bundle)

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)

```
"padam87/knockout-js-bundle": "dev-master",

```

### 2.2. AppKernel:

[](#22-appkernel)

```
$bundles = array(
	...
    new Padam87\KnockoutJSBundle\Padam87KnockoutJSBundle(),
);

```

### 2.3. config.yml:

[](#23-configyml)

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

jms_di_extra:
    locations:
        all_bundles: false
        bundles: [Padam87KnockoutJSBundle]

```

jms\_di\_extra configuration is unnecessary if you have set all\_bundles to true

### 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)

None. For testing purposes I used my 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.

[![Bitdeli Badge](https://camo.githubusercontent.com/7489bc74c44734aef60ca61c17e26e71a6c34d9cccde40806afadd22aee251f0/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f506164616d38372f6b6e6f636b6f75746a7362756e646c652f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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://avatars.githubusercontent.com/u/776488?v=4)[Adam Prager](/maintainers/Padam87)[@Padam87](https://github.com/Padam87)

---

Top Contributors

[![Padam87](https://avatars.githubusercontent.com/u/776488?v=4)](https://github.com/Padam87 "Padam87 (18 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)")

### Embed Badge

![Health badge](/badges/padam87-knockout-js-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/padam87-knockout-js-bundle/health.svg)](https://phpackages.com/packages/padam87-knockout-js-bundle)
```

###  Alternatives

[laravel/dusk

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

1.9k39.6M297](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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