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

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

bigfoot/content-bundle
======================

Bigfoot Content bundle

v2.2.1(11y ago)016.0k11MITPHP

Since Sep 10Pushed 6y ago12 watchersCompare

[ Source](https://github.com/c2is/BigfootContentBundle)[ Packagist](https://packagist.org/packages/bigfoot/content-bundle)[ RSS](/packages/bigfoot-content-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (1)Versions (30)Used By (1)

ContentBundle
=============

[](#contentbundle)

ContentBundle is part of the framework BigFoot created by C2IS.

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

[](#installation)

Add 'BigFoot/ContentBundle' into your composer.json file in the 'require' section:

```
"require": {
    ...
    ...
    "bigfoot/content-bundle": "dev-master",
}
```

Update your project:

```
php composer.phar update
```

Configuration
-------------

[](#configuration)

In order to add Widgets into the dashboard section, you have to add parameters into your `config.yml` file.

```
# app/config/config.yml
bigfoot_content:
    widgets:
        widget_test: 'Bigfoot\Bundle\ContentBundle\Widget\WidgetTest'
        widget_most_viewed_hotel: 'Bigfoot\Bundle\ContentBundle\Widget\WidgetMostViewedHotel'
```

Usage
-----

[](#usage)

Add a Page:

Go to the `Page` section and manage the pages.

Add a Static content:

Go to the `Static Content` and manage the static content. Note that all the static content will be listed in the `Dashboard` section.

Add a Widget:

Add the name and the class of your widget in your `config.yml` file. (see the Configuration section).

Create your class in the Widget directory, it has to extend the abstract class `AbstractWidget` located in the Model directory.

```
/* Widget/WidgetTest.php */

namespace Bigfoot\Bundle\ContentBundle\Widget;

use Bigfoot\Bundle\ContentBundle\Model\AbstractWidget;

class WidgetTest extends AbstractWidget
{

    /**
    * The name of your Widget
    * @return Slug
    */
    public function getName()
    {
        return 'widget_test';
    }

    /**
    * Label of your Widget
    * Displayed in the Dashboard section
    */
    public function getLabel()
    {
        return 'The Widget Test';
    }

    /**
    * Parameters of your Widget
    * These parameters have to be the parameters of the target Action Controller.
    */
    public function getDefaultParameters()
    {
        return array(
            'page_id' => 1
        );
    }

    /**
    * The target Route of your Widget
    * Route of the action controller
    */
    public function getRoute()
    {
        return 'content_page';
    }

    /**
    * Form type of your Widget
    * This is the specific form of your Widget to add your custom parameters
    * The parent have to be `bigfoot_bundle_contentbundle_widgettype`
    */
    public function getParametersType()
    {
        return 'Bigfoot\Bundle\ContentBundle\Form\WidgetTestType';
    }

}
```

Create the Form Type of your Widget:

```
/* Form/WidgetTestType.php */
namespace Bigfoot\Bundle\ContentBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

class WidgetTestType extends AbstractType
{

    protected $container;

    /**
     * Constructor
     *
     * @param $container
     */
    public function __construct($container)
    {
        $this->container = $container;
    }

    /**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('page_id');

    }

    /**
     * @param OptionsResolverInterface $resolver
     */
    public function configureOptions(OptionsResolver $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Bigfoot\Bundle\ContentBundle\Entity\Widget'
        ));
    }

    /**
     * @return string
     */
    public function getName()
    {
        return 'bigfoot_bundle_contentbundle_widgettesttype';
    }

    /**
    * This method has to return 'bigfoot_bundle_contentbundle_widgettype'
    * @return string
    */
    public function getParent()
    {
        return 'bigfoot_bundle_contentbundle_widgettype';
    }
}
```

Manage your sidebars
--------------------

[](#manage-your-sidebars)

Go to the `Dashboard` section.

Create a sidebar:

Click on the picto `New Sidebar` at the right.

Affect a Widget/Static content to a Sidebar:

At the left is listed all your Widgets and Static Contents. Drag'n'drop them to any sidebar.

Manage the order:

You can drag'n'drop any affected Widget/Static Content to sort them up. Validate by clicking on the picto at the left of the Sidebar title.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~73 days

Recently: every ~107 days

Total

11

Last Release

3808d ago

Major Versions

v1.0.0 → v2.0.02014-03-31

2.2.x-dev → 3.x-dev2016-01-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/9cf973b70f53fe114063efd8ca9e8c9dd45606ad49b5a9dba27fdecb0d0ada64?d=identicon)[gmanen](/maintainers/gmanen)

---

Top Contributors

[![gmanen](https://avatars.githubusercontent.com/u/1336033?v=4)](https://github.com/gmanen "gmanen (111 commits)")[![ZeMarine](https://avatars.githubusercontent.com/u/158932?v=4)](https://github.com/ZeMarine "ZeMarine (49 commits)")[![Acrack](https://avatars.githubusercontent.com/u/1526998?v=4)](https://github.com/Acrack "Acrack (46 commits)")[![nikophil](https://avatars.githubusercontent.com/u/10139766?v=4)](https://github.com/nikophil "nikophil (19 commits)")[![guillaumeprost](https://avatars.githubusercontent.com/u/6176455?v=4)](https://github.com/guillaumeprost "guillaumeprost (4 commits)")[![korby](https://avatars.githubusercontent.com/u/1763887?v=4)](https://github.com/korby "korby (1 commits)")[![shuot](https://avatars.githubusercontent.com/u/3470518?v=4)](https://github.com/shuot "shuot (1 commits)")[![GregoireHebert](https://avatars.githubusercontent.com/u/878701?v=4)](https://github.com/GregoireHebert "GregoireHebert (1 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M836](/packages/laravel-socialite)[laravel/dusk

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

1.9k38.6M289](/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)
