PHPackages                             vladislavs/content-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. [Templating &amp; Views](/categories/templating)
4. /
5. vladislavs/content-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

vladislavs/content-bundle
=========================

This bundle provides localized content management

2.4.1(12y ago)032MITPHPPHP &gt;=5.3.3

Since Apr 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/vladislavs/content-bundle)[ Packagist](https://packagist.org/packages/vladislavs/content-bundle)[ Docs](http://github.com/arcanacode/content-bundle)[ RSS](/packages/vladislavs-content-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

README
======

[](#readme)

[![Build Status](https://camo.githubusercontent.com/7f0a012d52a4caada7d0554bedc4e44d751fe07dbb80a5700341497a14802a84/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f617263616e61636f64652f436f6e74656e7442756e646c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/arcanacode/ContentBundle)[![Latest Stable Version](https://camo.githubusercontent.com/c6fa07a2c4e41144e8a8efc1c8c9ca195fdc73f41df776212c77fc3dd2476991/68747470733a2f2f706f7365722e707567782e6f72672f617263616e61636f64652f636f6e74656e742d62756e646c652f76657273696f6e2e706e67)](https://packagist.org/packages/arcanacode/content-bundle)[![Total Downloads](https://camo.githubusercontent.com/826734dbef6a271e3b6c9aa78bd3991a9512920dfb24d8291b575ee1f6c8fa5b/68747470733a2f2f706f7365722e707567782e6f72672f617263616e61636f64652f636f6e74656e742d62756e646c652f642f746f74616c2e706e67)](https://packagist.org/packages/arcanacode/content-bundle)

License here.

What is Arcana Content Bundle?
------------------------------

[](#what-is-arcana-content-bundle)

Arcana Content Bundle allows administrators to edit texts directly in the page, not some separate Admin section.

Requirements
------------

[](#requirements)

- Symfony 2.4.x
- See also the `require` section of [composer.json](composer.json)

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

[](#installation)

Bundle can be installed via Composer. You can find this bundle on packagist:

```

// composer.json
{
    // ...
    require: {
        // ..
        "arcanacode/content-bundle": "dev-master"

    }
}

```

Then, you can install the new dependencies by running Composer's update command from the directory where your composer.json file is located:

```

    php composer.phar update

```

You have to add this bundle to `AppKernel.php` register bundles method, so that Symfony can use it.

```
// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new Arcana\Bundle\ContentBundle\ArcanaContentBundle(),
);
```

In your `config.yml` you must add this bundle to jms\_di\_extra.

```
jms_di_extra:
    locations:
        bundles: [ ArcanaContentBundle ]
```

Next add bundle to the 'app/config/routing.yml' file.

```
arcana_content:
    resource: "@ArcanaContentBundle/Controller/"
    type:     annotation
```

In base template file include stylesheets and javascripts for only users with ROLE\_ADMIN

```
{% if is_granted('ROLE_ADMIN') %}
    {% stylesheets filter="cssrewrite"
        "bundles/arcanacontent/vendor/raptor/raptor-custom-front-end.min.css"
    %}

    {% endstylesheets %}
{% endif %}
{% if is_granted('ROLE_ADMIN') %}
    {% javascripts
        "bundles/arcanacontent/vendor/raptor/raptor.custom.min.js"
        "bundles/arcanacontent/js/manager.js"
    %}

{% endjavascripts %}

    window.arcana_content_manager.contentSaveUrl = '{{ path('arcana_content_save') }}';

{% endif %}

```

Put somewhere in your base template

```
window.arcana_content_manager.contentSaveUrl = '{{ path('arcana_content_save') }}';
```

In your security.yml file restrict access for arcana\_content\_save path only to administrators.

```
access_control:
    //..
    - { path: ^/save, roles: ROLE_ADMIN }
```

Finally run app/console doctrine:schema:update --force to create 'content' table in your database.

Usage
-----

[](#usage)

In order to use the bundle, all texts you want to be able to edit, must be added to template with content filter in such format:

```
{{ 'default value' | content('name', {options}) }}
```

'default value' is the default text, that will appear if no content is found in database. 'name' is the name of content in the content table. 'options' - array of options (listed below). Example:

```
{{ 'Welcome to the Arcana Content Bundle!' | content('default_page_title', { editable_separately: true, type: 'plaintext' }) }}
```

You can also use large text blocks (also with html tags) without using a default value, for example:

```
{% content of "facts_text" %}

            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc rhoncus massa et dui tempor facilisis. In a luctus erat. Morbi eget tellus fermentum, pretium arcu sed, congue arcu.

{% endcontent %}

```

Separately editable texts

```
{{ 'You can edit me separately' | content('separate_title_tag', { editable_separately: true, type: 'plaintext' }) }}
```

Separately editable texts are texts, that are not visible on the page, for example ![]() "title" tag. You can edit them by opening "Separately editable contents" popup.

Options available: 'editable\_separately' - if 'true', will be editable in separately editable contents popup 'type': 'plaintext'/'block'/'inline'/'anchor' - NEED DESCRIPTION

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

[](#contributing)

Pull requests are welcome.

Description here.

Running Symfony2 Tests
----------------------

[](#running-symfony2-tests)

Description here.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 51.9% 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 ~0 days

Total

2

Last Release

4398d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/405455b013162f89ed06bdb05c15ee01f78a79883e7a2a3bf4431757f5ec8439?d=identicon)[vladislavs](/maintainers/vladislavs)

---

Top Contributors

[![vylcans](https://avatars.githubusercontent.com/u/2427916?v=4)](https://github.com/vylcans "vylcans (14 commits)")[![ivoaz-arcana](https://avatars.githubusercontent.com/u/6313617?v=4)](https://github.com/ivoaz-arcana "ivoaz-arcana (7 commits)")[![beinarovic](https://avatars.githubusercontent.com/u/1528278?v=4)](https://github.com/beinarovic "beinarovic (5 commits)")[![vladislavs](https://avatars.githubusercontent.com/u/2111889?v=4)](https://github.com/vladislavs "vladislavs (1 commits)")

---

Tags

symfonybundletwigcontentarcana

### Embed Badge

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

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

###  Alternatives

[yellowskies/qr-code-bundle

Symfony Barcode &amp; QR Code Generator Bundle with Twig extension

36682.9k](/packages/yellowskies-qr-code-bundle)[nucleos/antispam-bundle

This bundle provides some basic features to reduce spam in symfony forms.

52105.1k](/packages/nucleos-antispam-bundle)[cg/kint-bundle

This bundle lets you use the Kint function in your Twig templates. Kint is a print\_r() replacement which produces a structured, collapsible and escaped output

22125.8k1](/packages/cg-kint-bundle)

PHPackages © 2026

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