{"id":20698974,"url":"https://github.com/mwsimple/forobundle","last_synced_at":"2026-04-18T08:33:58.480Z","repository":{"id":57022457,"uuid":"56165351","full_name":"MWSimple/ForoBundle","owner":"MWSimple","description":"Foro Bundle","archived":false,"fork":false,"pushed_at":"2016-11-29T13:53:50.000Z","size":393,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-17T19:08:49.911Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MWSimple.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-13T15:48:22.000Z","updated_at":"2016-04-13T16:10:32.000Z","dependencies_parsed_at":"2022-08-23T12:20:38.855Z","dependency_job_id":null,"html_url":"https://github.com/MWSimple/ForoBundle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MWSimple%2FForoBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MWSimple%2FForoBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MWSimple%2FForoBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MWSimple%2FForoBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MWSimple","download_url":"https://codeload.github.com/MWSimple/ForoBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242967686,"owners_count":20214280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T00:27:37.669Z","updated_at":"2026-04-18T08:33:58.449Z","avatar_url":"https://github.com/MWSimple.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ForoBundle\n\n## Objetivos\n- Proveer de un foro de debates.\n- Usuario editor, podrá crear grupos y cada grupo tener editor/es de grupo, los editores de grupo pueden incluir miembros.\n- Pueden crear debates los editores del grupo y los miembros incluidos en el grupo.\n- Los editores o miembros del grupo pueden responder al debate.\n\n## Installation\n\n### Using composer\n\nAdd following lines to your `composer.json` file:\n\n### Support Symfony 2.7.* + Include Boostrap 3\n\n```json\n\"require\": {\n    ...\n    \"mwsimple/foro\": \"1.0.*@dev\",\n}\n```\n\nExecute:\n\n```cli\nphp composer.phar update \"mwsimple/foro\"\n```\n\nAdd it to the `AppKernel.php` class:\n\n```php\n// ...\nnew MWSimple\\Bundle\\ForoBundle\\MWSimpleForoBundle(),\n```\n\nRegister the bundle:\n\n```php\n// app/AppKernel.php\npublic function registerBundles()\n{\n    $bundles = array(\n        // ...\n        new Knp\\Bundle\\TimeBundle\\KnpTimeBundle(),\n    );\n    // ...\n}\n```\n\n## Configure Entities\n\n#### Implements Interface FosUserSubjectInterface in YOU UserFos Entity\n```php\n...\n// DON'T forget this use statement!!!\nuse MWSimple\\Bundle\\ForoBundle\\Model\\FosUserSubjectInterface;\n...\nclass User extends BaseUser implements FosUserSubjectInterface  {\n    ...\n    \n    /**\n     * @return string\n     */\n    public function getName()\n    {\n        return $this-\u003eusername;\n    }\n\n    ...\n}\n```\n\n## Configure your config.yml\n```yaml\n\nimports:\n    # ForoBundle services\n    - { resource: \"@MWSimpleForoBundle/Resources/config/services.yml\" }\n\n    ...\n\nparameters:\n    # entity referenced to FosUserSubjectInterface\n    # entity referenced to FosUserSubjectInterface in this example:\n    subjectInterface: Sistema\\UserBundle\\Entity\\User\n\n    ...\n\n# Doctrine Configuration\ndoctrine:\n    orm:\n        auto_mapping: true\n        # resolve_target attach to the subject entity for other thirds entities \n        resolve_target_entities:\n            # configuration of the parameters attach fos\n            MWSimple\\Bundle\\ForoBundle\\Model\\FosUserSubjectInterface: \"%subjectInterface%\"\n\n    ...\n```\n\n## Configure your own routings with the forobundle dynamically for yours own purposes in routing.yml\n#### EXAMPLES\n```yaml\n\n# all routes from forobundle\nmw_simple_front:\n    resource: \"@MWSimpleForoBundle/Controller/\"\n    type:     annotation\n    prefix:   /foro\n\n# one route especific in this case DefaultController Index\nfront_foro:\n    path: /mws_front_foro/\n    defaults:\n        _controller: MWSimpleForoBundle:Default:index\n        template:    index.html.twig\n\n# other route especific only for the foro groups create with security own, show GrupoController Index\n# one route especific only for the foro groups create with security, show GrupoController Index\nadmin_foro_grupo:\n    path: /admin/foro/grupo\n    defaults:\n        _controller: MWSimpleForoBundle:Grupo:index\n        template:    index.html.twig\n\n# route for redirect view after create new entry\n# foro_mws:\n#     pattern: /matriculado/foro/{foro_id}\n#     defaults:\n#         _controller: SistemaCPCEBundle:Default:foro\n#         template:    index.html.twig\n#     requirements:\n#         _method:  GET\n#         foro_id: \\d+\n\n    ...\n```\n\n### Importing yours controllers RENDERS, example front_foro view\n## OR Configure your own annotations route for the foro.\n\n#### In any Controller\n```php\n...\nclass defaultController  {\n    ...\n    \n    /**\n     * @Route(\"/foro/{foro_id}\", name=\"foro_mws\")\n     * @Template()\n     */\n    public function foroAction($foro_id = 0)\n    {\n         \n        //Create a view of foro.html.twig for render Front of ForoBundle\n        return array('foro_id' =\u003e $foro_id);\n    }\n\n    ...\n}\n```\n\n### Importing yours controllers RENDERS, example front_foro view in TWIG\n#### in this case is the Front view of ForoBundle\n```twig\n    {# corresponds to the configurations in yours routing.yml #}\n    {{ render(url('front_foro')) }}\n```\n\n## Author\n\nTECSPRO - contacto@tecspro.com.ar","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwsimple%2Fforobundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmwsimple%2Fforobundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwsimple%2Fforobundle/lists"}