PHPackages                             nvbooster/phpcr-assets-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. [File &amp; Storage](/categories/file-storage)
4. /
5. nvbooster/phpcr-assets-bundle

ActiveSymfony-bundle[File &amp; Storage](/categories/file-storage)

nvbooster/phpcr-assets-bundle
=============================

Bundle for storing and serving js, css assets with PHPCR Storage

06PHP

Since Mar 20Pushed 10y ago1 watchersCompare

[ Source](https://github.com/nvbooster/PHPCRAssets)[ Packagist](https://packagist.org/packages/nvbooster/phpcr-assets-bundle)[ RSS](/packages/nvbooster-phpcr-assets-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PHPCRAssets
===========

[](#phpcrassets)

[![Build Status](https://camo.githubusercontent.com/a5f22584ffa3f6ef9663d3b1190c9aa08b4275b2fd59423a86d6ab519c57c854/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e76626f6f737465722f50485043524173736574732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nvbooster/PHPCRAssets/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/94ad9b0bac54f8ee7939f9ea2f6ff4815cacedf9b3bf9fd380c29fa65aedade2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e76626f6f737465722f50485043524173736574732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nvbooster/PHPCRAssets/?branch=master)

Bundle for storing and serving js, css assets with PHPCR Storage.

Install
-------

[](#install)

Include this to you composer.json file

```
"nvbooster/phpcr-assets-bundle": "dev-master"
```

or run

```
composer require nvbooster/phpcr-assets-bundle-master
```

Ensure CmfRoutingAutoBundle is installed and configured according to

Then add PHPCRAssetsBundle to your AppKernel:

```
	public function registerBundles()
    {
        $bundles = array(
			...
            new NVBooster\PHPCRAssetsBundle\NVBoosterPHPCRAssetsBundle(),
        );
    }
```

Configure
=========

[](#configure)

No configuration required for base functionality;

SonataAdmin integration
-----------------------

[](#sonataadmin-integration)

To manage assets using SonataAdmin add admin services to sonata config

```
sonata_admin:
    dashboard:
        groups:
        	...
            assets:
                label: Assets
                items:
                    - nvbooster_assets.js_asset_admin
                    - nvbooster_assets.css_asset_admin
sonata_doctrine_phpcr_admin:
    document_tree:
		...
        NVBooster\PHPCRAssetsBundle\Asset\JsAsset:
            valid_children: []
        NVBooster\PHPCRAssetsBundle\Asset\CssAsset:
            valid_children: []
```

CodeMirror integration
----------------------

[](#codemirror-integration)

To use CodeMirror library for editing assets in SonataAdmin, add codemirror section to config:

```
nvbooster_assets:
	codemirror: ~
```

If you want for bundle to automatically include js and css files of CodeMirror when needed, then you should provide paths (see Full config).

Full configuration
------------------

[](#full-configuration)

```
nvbooster_assets:
    phpcr:
        root_path: '/cms/assets'	#Defines path in PHPCR tree for assets to store in
    filters:
        css: []						#Default assetics filters for css assets
        js: []						#Default assetics filters for js assets
    routing:
        base_uri: assets 			#Defines base uri for routes generated
    codemirror:
        paths:
            js: ~        			#Path for codemirror.js in web folder
            css: ~                  #Path for codemirror.css  in web folder
            modes_dir: ~            #Path for codemirror modes directory in web folder
            themes_dir: ~           #Path for codemirror theme styles  in web folder
        options:                	#Codemirror widget defaults
			mode: xml				#Default mode
			theme: eclipse			#Default theme
```

Using
=====

[](#using)

After configuring run repository initializers to create all required paths in PHPCR storage:

```
php app/console doctrine:phpcr:repository:init
```

Include assets in your templates:

```

```

or any other way.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13161889?v=4)[Vyacheslav Nechipurenko](/maintainers/nvbooster)[@nvbooster](https://github.com/nvbooster)

---

Top Contributors

[![nvbooster](https://avatars.githubusercontent.com/u/13161889?v=4)](https://github.com/nvbooster "nvbooster (6 commits)")

### Embed Badge

![Health badge](/badges/nvbooster-phpcr-assets-bundle/health.svg)

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

###  Alternatives

[venveo/craft-compress

Create smart zip files from Craft assets on the fly

124.7k](/packages/venveo-craft-compress)

PHPackages © 2026

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