PHPackages                             mwsimple/foro - 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. mwsimple/foro

ActiveSymfony-bundle

mwsimple/foro
=============

This bundle foro

0462PHP

Since Nov 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/MWSimple/ForoBundle)[ Packagist](https://packagist.org/packages/mwsimple/foro)[ RSS](/packages/mwsimple-foro/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ForoBundle
==========

[](#forobundle)

Objetivos
---------

[](#objetivos)

- Proveer de un foro de debates.
- Usuario editor, podrá crear grupos y cada grupo tener editor/es de grupo, los editores de grupo pueden incluir miembros.
- Pueden crear debates los editores del grupo y los miembros incluidos en el grupo.
- Los editores o miembros del grupo pueden responder al debate.

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

[](#installation)

### Using composer

[](#using-composer)

Add following lines to your `composer.json` file:

### Support Symfony 2.7.\* + Include Boostrap 3

[](#support-symfony-27--include-boostrap-3)

```
"require": {
    ...
    "mwsimple/foro": "1.0.*@dev",
}
```

Execute:

```
php composer.phar update "mwsimple/foro"

```

Add it to the `AppKernel.php` class:

```
// ...
new MWSimple\Bundle\ForoBundle\MWSimpleForoBundle(),
```

Register the bundle:

```
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Knp\Bundle\TimeBundle\KnpTimeBundle(),
    );
    // ...
}
```

Configure Entities
------------------

[](#configure-entities)

#### Implements Interface FosUserSubjectInterface in YOU UserFos Entity

[](#implements-interface-fosusersubjectinterface-in-you-userfos-entity)

```
...
// DON'T forget this use statement!!!
use MWSimple\Bundle\ForoBundle\Model\FosUserSubjectInterface;
...
class User extends BaseUser implements FosUserSubjectInterface  {
    ...

    /**
     * @return string
     */
    public function getName()
    {
        return $this->username;
    }

    ...
}
```

Configure your config.yml
-------------------------

[](#configure-your-configyml)

```
imports:
    # ForoBundle services
    - { resource: "@MWSimpleForoBundle/Resources/config/services.yml" }

    ...

parameters:
    # entity referenced to FosUserSubjectInterface
    # entity referenced to FosUserSubjectInterface in this example:
    subjectInterface: Sistema\UserBundle\Entity\User

    ...

# Doctrine Configuration
doctrine:
    orm:
        auto_mapping: true
        # resolve_target attach to the subject entity for other thirds entities
        resolve_target_entities:
            # configuration of the parameters attach fos
            MWSimple\Bundle\ForoBundle\Model\FosUserSubjectInterface: "%subjectInterface%"

    ...
```

Configure your own routings with the forobundle dynamically for yours own purposes in routing.yml
-------------------------------------------------------------------------------------------------

[](#configure-your-own-routings-with-the-forobundle-dynamically-for-yours-own-purposes-in-routingyml)

#### EXAMPLES

[](#examples)

```
# all routes from forobundle
mw_simple_front:
    resource: "@MWSimpleForoBundle/Controller/"
    type:     annotation
    prefix:   /foro

# one route especific in this case DefaultController Index
front_foro:
    path: /mws_front_foro/
    defaults:
        _controller: MWSimpleForoBundle:Default:index
        template:    index.html.twig

# other route especific only for the foro groups create with security own, show GrupoController Index
# one route especific only for the foro groups create with security, show GrupoController Index
admin_foro_grupo:
    path: /admin/foro/grupo
    defaults:
        _controller: MWSimpleForoBundle:Grupo:index
        template:    index.html.twig

# route for redirect view after create new entry
# foro_mws:
#     pattern: /matriculado/foro/{foro_id}
#     defaults:
#         _controller: SistemaCPCEBundle:Default:foro
#         template:    index.html.twig
#     requirements:
#         _method:  GET
#         foro_id: \d+

    ...
```

### Importing yours controllers RENDERS, example front\_foro view

[](#importing-yours-controllers-renders-example-front_foro-view)

OR Configure your own annotations route for the foro.
-----------------------------------------------------

[](#or-configure-your-own-annotations-route-for-the-foro)

#### In any Controller

[](#in-any-controller)

```
...
class defaultController  {
    ...

    /**
     * @Route("/foro/{foro_id}", name="foro_mws")
     * @Template()
     */
    public function foroAction($foro_id = 0)
    {

        //Create a view of foro.html.twig for render Front of ForoBundle
        return array('foro_id' => $foro_id);
    }

    ...
}
```

### Importing yours controllers RENDERS, example front\_foro view in TWIG

[](#importing-yours-controllers-renders-example-front_foro-view-in-twig)

#### in this case is the Front view of ForoBundle

[](#in-this-case-is-the-front-view-of-forobundle)

```
    {# corresponds to the configurations in yours routing.yml #}
    {{ render(url('front_foro')) }}
```

Author
------

[](#author)

TECSPRO -

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.7% 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://www.gravatar.com/avatar/8ab7da460db4f61d98fb4c414cfbd87ca6134fe03dd4bcc764ac19a8164918f6?d=identicon)[gonzaloalonsod](/maintainers/gonzaloalonsod)

---

Top Contributors

[![maxshtefec](https://avatars.githubusercontent.com/u/6925933?v=4)](https://github.com/maxshtefec "maxshtefec (29 commits)")[![gonzaloalonsod](https://avatars.githubusercontent.com/u/1031176?v=4)](https://github.com/gonzaloalonsod "gonzaloalonsod (18 commits)")

### Embed Badge

![Health badge](/badges/mwsimple-foro/health.svg)

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

PHPackages © 2026

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