PHPackages                             jbuilder/jbuilder-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. jbuilder/jbuilder-bundle

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

jbuilder/jbuilder-bundle
========================

Symfony2 bundle for JBuilder

1.1.1(10y ago)313.3k2MITPHPPHP &gt;=5.4

Since May 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/dakatsuka/JBuilderBundle)[ Packagist](https://packagist.org/packages/jbuilder/jbuilder-bundle)[ RSS](/packages/jbuilder-jbuilder-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

JBuilderBundle [![Build Status](https://camo.githubusercontent.com/b02a7b7ebb392078475afd1d69c842d68da16ebd6ff1469c148ec19a4fedcae3/68747470733a2f2f7472617669732d63692e6f72672f64616b617473756b612f4a4275696c64657242756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dakatsuka/JBuilderBundle)
======================================================================================================================================================================================================================================================================================================================

[](#jbuilderbundle-)

Symfony2/Symfony3 Bundle for JBuilder

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

[](#installation)

Add this lines to your composer.json:

```
{
    "require": {
        "jbuilder/jbuilder-bundle": "~1.0"
    }
}
```

And then execute:

```
$ php composer.phar install
```

And import a JBuilderBundle to AppKernel.php:

```
$bundles = array(
    new JBuilder\JBuilderBundle\JBuilderJBuilderBundle(),
);
```

Usage
-----

[](#usage)

Insert the following code to controller:

```
public function indexAction()
{
    $posts = $this->getDoctrine()->getRepository('Acme\BlogBundle\Entity\Post')->findAll();

    return $this->get('jbuilder')->render('AcmeBlogBundle:Post:index.json.php', array('posts' => $posts));
}
```

src/Acme/BlogBundle/Resources/views/Post/index.json.php:

```
$json->buildArray($posts, function($json, $post) {
    $json->id    = $post->getId();
    $json->title = $post->getTitle();
});
```

Contributing
------------

[](#contributing)

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Copyright
---------

[](#copyright)

Copyright (C) 2016 Dai Akatsuka, released under the MIT License.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~484 days

Total

3

Last Release

3821d ago

### Community

Maintainers

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

---

Top Contributors

[![dakatsuka](https://avatars.githubusercontent.com/u/59034?v=4)](https://github.com/dakatsuka "dakatsuka (16 commits)")

---

Tags

jsonSymfony2

### Embed Badge

![Health badge](/badges/jbuilder-jbuilder-bundle/health.svg)

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

###  Alternatives

[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k91.4M664](/packages/jms-serializer-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[symfony-bundles/json-request-bundle

Symfony JsonRequest Bundle

501.7M6](/packages/symfony-bundles-json-request-bundle)[wa72/jsonrpc-bundle

JSON-RPC server for Symfony: exposes services registered in the service container as JSON-RPC webservices

3064.7k](/packages/wa72-jsonrpc-bundle)

PHPackages © 2026

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