{"id":16673995,"url":"https://github.com/sensorario/sensorariocommentbundle","last_synced_at":"2025-06-16T03:09:17.234Z","repository":{"id":145917897,"uuid":"4767915","full_name":"sensorario/SensorarioCommentBundle","owner":"sensorario","description":"My first attempt to make a bundle for symfony2","archived":false,"fork":false,"pushed_at":"2012-06-30T11:44:53.000Z","size":184,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T10:53:24.340Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sensorario.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-23T21:56:28.000Z","updated_at":"2013-10-24T21:22:43.000Z","dependencies_parsed_at":"2023-03-23T05:30:44.717Z","dependency_job_id":null,"html_url":"https://github.com/sensorario/SensorarioCommentBundle","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/sensorario%2FSensorarioCommentBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensorario%2FSensorarioCommentBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensorario%2FSensorarioCommentBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensorario%2FSensorarioCommentBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sensorario","download_url":"https://codeload.github.com/sensorario/SensorarioCommentBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280175,"owners_count":20912965,"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-10-12T12:29:00.990Z","updated_at":"2025-04-05T02:41:36.453Z","avatar_url":"https://github.com/sensorario.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Requirements\n============\n\nThis bundle use jquery. To include it use:\n\n    \u003cscript\n        src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js\"\n        type=\"text/javascript\"\u003e\u003c/script\u003e\n\nRegister Sensorario Namespace\n=============================\n\n    $loader-\u003eregisterNamespaces(array(\n        ....\n        'Sensorario'                        =\u003e __DIR__.'/../vendor/bundles',\n        ....\n    ));\n\nAdd Bundle to AppKernel\n=======================\n\n    class AppKernel extends Kernel\n    {\n        public function registerBundles()\n        {\n            $bundles = array(\n                ...\n                new Sensorario\\CommentBundle\\SensorarioCommentBundle(),\n                ...\n            );\n        }\n\n        ...\n    }\n\nInstall\n=======\n\nUpdate your deps file\n\n    [SensorarioCommentBundle]\n        git=git://github.com/sensorario/SensorarioCommentBundle.git\n        target=/bundles/Sensorario/CommentBundle\n\nAnd install this vendor\n\n    $ php bin/vendors install\n\nUpdate your DB schema with Doctrine\n===================================\n\nIf you want, can add migrations for update your database.\nSensorarioCommentBundle use Comment entity to store comments. So, you must\nupdate your database before start to use this bundle.\n\n    $ php app/console doctrine:migrations:diff\n    $ php app/console doctrine:migrations:migrate\n\nAlso, you can update your database schema with:\n\n    $ php app/console doctrine:schema:update --force\n\nInstall assets\n==============\n\nRun this command:\n\n    $ php app/console assets:install web/\n\nAdd routing\n===========\n\nAdd this in routing.yml\n\n    SensorarioCommentBundle:\n        resource: \"@SensorarioCommentBundle/Controller/\"\n        type:     annotation\n        prefix:   /\n\nUsage\n=====\n\nJust put this snippet of code on your pages, to comment them. And just remember\nto change \"unique_id\" for each different \"thread\".\n\n    {% render 'SensorarioCommentBundle:Index:index' with {'unique_id': 'home_page'} %}\n\nNice gui with Twitter Bootstrap\n===============================\n\nAlso, if you like, can override comments.html.twig template with this. This\ntemplate add some icons. Like a trash for delete a comment, a \"user\" icon near\nusername, and a clock near comment datetime creation.\n\n    \u003ctable\u003e\n        {% for commento in comments %}\n            \u003ctr id=\"sensorario_comment_tr_{{ commento.id }}\"\u003e\n                \u003ctd\u003e\n                    \u003cspan class=\"icon-time\"\u003e\u003c/span\u003e {{ commento.getCreationDate|date(\"d/m/Y\") }}\u003cbr /\u003e\n                    \u003cspan class=\"icon-user\"\u003e\u003c/span\u003e \u003cstrong\u003e{{ commento.author }}\u003c/strong\u003e: {{ commento.comment }}\u003cbr /\u003e\n                \u003c/td\u003e\n                \u003ctd\u003e\n                    \u003ca  \n                    href=\"{{ path('sensorario_comment_delete', {'unique_id': commento.unique_id}) }}\"\n                    class=\"SensorarioCommentsDelete\"\n                    id=\"delete_{{ commento.id }}\"\n                    data=\"{{ commento.id }}\"\u003e\n                        \u003cspan class=\"icon-trash\"\u003e\u003c/span\u003e\n                    \u003c/a\u003e\n                \u003c/td\u003e\n            \u003c/tr\u003e\n        {% endfor %}\n    \u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensorario%2Fsensorariocommentbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsensorario%2Fsensorariocommentbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensorario%2Fsensorariocommentbundle/lists"}