PHPackages                             kunicmarko/configuration-panel - 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. [Admin Panels](/categories/admin)
4. /
5. kunicmarko/configuration-panel

Abandoned → [kunicmarko/simple-configuration-bundle](/?search=kunicmarko%2Fsimple-configuration-bundle)Symfony-bundle[Admin Panels](/categories/admin)

kunicmarko/configuration-panel
==============================

This is a Symfony Bundle that adds configuration panel to your sonata admin.

2.0.0(9y ago)046MITPHP ^5.6|^7.0

Since Apr 12Compare

[ Source](https://github.com/kunicmarko20/configuration-panel)[ Packagist](https://packagist.org/packages/kunicmarko/configuration-panel)[ Docs](https://github.com/kunicmarko20/configuration-panel)[ RSS](/packages/kunicmarko-configuration-panel/feed)WikiDiscussions Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Sonata Configuration Panel
==========================

[](#sonata-configuration-panel)

```
ABANDONED, Please use SimpleConfigurationBundle

```

This bundle adds configuration panel to your sonata admin, also you can easily extend bundle and add your own types.

This bundle depends on [SonataAdminBundle](https://github.com/sonata-project/SonataAdminBundle)

[![Dashboard](https://cloud.githubusercontent.com/assets/13528674/21304601/a1c4936e-c5c6-11e6-9834-2d9f9942c5ff.png)](https://cloud.githubusercontent.com/assets/13528674/21304601/a1c4936e-c5c6-11e6-9834-2d9f9942c5ff.png)Documentation
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#documentation)

- [Installation](#installation)
- [How to use](#how-to-use)
- [Add new type](#add-new-type)
- [Roles and Categories](#roles-and-categories)
- [Additional stuff](#additional-stuff)

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

[](#installation)

**1.** Add to composer.json to the `require` key

```
composer require kunicmarko/configuration-panel

```

**2.** Register the bundle in `app/AppKernel.php`

```
$bundles = array(
    // ...
    new KunicMarko\SonataConfigurationPanelBundle\ConfigurationPanelBundle(),
);

```

If you are not using auto\_mapping add it to your orm mappings

```
# app/config/config.yml
   orm:
        entity_managers:
            default:
                mappings:
                    AppBundle: ~
                    ...
                    ConfigurationPanelBundle: ~

```

**3.** Update database

```
app/console doctrine:schema:update --force

```

**4.** Clear cache

```
app/console cache:clear

```

How to use
----------

[](#how-to-use)

In your twig template you can call it like :

```
{{ configuration.getAll() }}
{{ configuration.getValueFor(name) }}

```

if you want to use it in controller you can do :

```
$this->get('configuration_panel.global.service')->getAll()
$this->get('configuration_panel.global.service')->getValueFor()

```

Add new type
------------

[](#add-new-type)

If you want to add new types, you can do it like this

```
# app/config/config.yml

configuration_panel:
    types:
        newtype: YourBundle\Entity\NewType

```

### Creating new Type

[](#creating-new-type)

Your new type has to extend AbstractConfiguration, you also have to specify template used for sonata list (it can be sonata template, or your own created), and how should field be rendered in form.

**1.** New type without new column

```
namespace YourBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use KunicMarko\SonataConfigurationPanelBundle\Entity\AbstractConfiguration;
use Sonata\AdminBundle\Form\FormMapper;
use Symfony\Component\Form\Extension\Core\Type\TextType;

/**
*
* @ORM\Entity(repositoryClass="KunicMarko\SonataConfigurationPanelBundle\Repository\ConfigurationRepository")
*
*/
class NewType extends AbstractConfiguration
{
    /**
     * {@inheritDoc}
     */
    public function getTemplate()
    {
        return 'SonataAdminBundle:CRUD:list_string.html.twig';
    }

    /**
     * {@inheritDoc}
     */
    public function generateFormField(FormMapper $formMapper)
    {
        $formMapper->add('value', TextType::class, ['required' => false]);
    }
}

```

**2.** New type with new column

As you can see from example code below, we added new `$date` field, the one thing that is necessary is to overwrite `getValue()` method with delegating to your getter for new field as shown below.

```

namespace YourBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use KunicMarko\SonataConfigurationPanelBundle\Entity\AbstractConfiguration;
use Sonata\AdminBundle\Form\FormMapper;
use Symfony\Component\Form\Extension\Core\Type\DateType;

/**
*
* @ORM\Entity(repositoryClass="KunicMarko\SonataConfigurationPanelBundle\Repository\ConfigurationRepository")
*
*/
class NewType extends AbstractConfiguration
{
    /**
     * @var \DateTime
     *
     * @ORM\Column(name="date", type="date", nullable=true)
     */
    private $date;

    /**
     * Set date
     *
     * @param \DateTime $date
     *
     * @return DateType
     */
    public function setDate($date)
    {
        $this->date = $date;

        return $this;
    }

    /**
     * Get date
     *
     * @return \DateTime
     */
    public function getDate()
    {
        return $this->date;
    }

    /**
     * Get date
     *
     * @return \DateTime
     */
    public function getValue()
    {
        return $this->getDate();
    }

    /**
     * {@inheritDoc}
     */
    public function getTemplate()
    {
        //return 'SonataAdminBundle:CRUD:list_string.html.twig'; can also be used

        return 'ConfigurationPanelBundle:CRUD:list_field_date.html.twig';
    }

    /**
     * {@inheritDoc}
     */
    public function generateFormField(FormMapper $formMapper)
    {
        $formMapper->add('date', DateType::class, ['required' => false]);
    }
}

```

Do not forget to update database after adding new field :

```
app/console doctrine:schema:update --force

```

Roles and Categories
--------------------

[](#roles-and-categories)

This bundle was made as help to developers so only `ROLE_SUPER_ADMIN` can create and delete items, regular admins can only edit. ( You can create keys and allow other admins to just edit them ). There are 2 categories when creating item, `Meta` and `General`, only `ROLE_SUPER_ADMIN` can see and edit items that are in `META` category while normal admins can only edit and see `General` items.

Additional stuff
----------------

[](#additional-stuff)

When including this bundle you get access to some twig filters I needed.

### Elapsed

[](#elapsed)

In twig you can use `|elapsed` filter and you will get human readable time, it works with timestamps or DateTime objects.

```
{{ var|elapsed }}

#outputs "time" ago, 5 days ago, 5 minutes ago, just now, 1 month ago, etc.

```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3366d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13528674?v=4)[Marko Kunic](/maintainers/kunicmarko20)[@kunicmarko20](https://github.com/kunicmarko20)

---

Tags

symfonybundlesonata-adminsonatasymfony configuration panel

### Embed Badge

![Health badge](/badges/kunicmarko-configuration-panel/health.svg)

```
[![Health](https://phpackages.com/badges/kunicmarko-configuration-panel/health.svg)](https://phpackages.com/packages/kunicmarko-configuration-panel)
```

###  Alternatives

[sonata-project/admin-bundle

The missing Symfony Admin Generator

2.1k19.4M312](/packages/sonata-project-admin-bundle)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

51390.8k3](/packages/web-auth-webauthn-framework)[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)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

65474.5k9](/packages/web-auth-webauthn-symfony-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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