{"id":17035793,"url":"https://github.com/danielm/symfony-demo-bundle","last_synced_at":"2026-05-08T03:44:03.378Z","repository":{"id":207605441,"uuid":"719659750","full_name":"danielm/symfony-demo-bundle","owner":"danielm","description":"Basic Symfony Bundle template/demo","archived":false,"fork":false,"pushed_at":"2023-11-19T15:36:20.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T08:43:42.243Z","etag":null,"topics":["boilerplate","bundle","composer","demo","flex","php","recipe","symfony","template"],"latest_commit_sha":null,"homepage":"","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/danielm.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-16T16:26:32.000Z","updated_at":"2023-11-18T19:30:56.000Z","dependencies_parsed_at":"2024-11-29T22:16:17.133Z","dependency_job_id":null,"html_url":"https://github.com/danielm/symfony-demo-bundle","commit_stats":null,"previous_names":["danielm/symfony-bundle-demo","danielm/symfony-demo-bundle"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/danielm/symfony-demo-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielm%2Fsymfony-demo-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielm%2Fsymfony-demo-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielm%2Fsymfony-demo-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielm%2Fsymfony-demo-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielm","download_url":"https://codeload.github.com/danielm/symfony-demo-bundle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielm%2Fsymfony-demo-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32766121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T02:36:36.067Z","status":"ssl_error","status_checked_at":"2026-05-08T02:36:07.210Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["boilerplate","bundle","composer","demo","flex","php","recipe","symfony","template"],"created_at":"2024-10-14T08:48:08.469Z","updated_at":"2026-05-08T03:44:03.349Z","avatar_url":"https://github.com/danielm.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Symfony Bundle Demo\n\n[![Build Status](https://github.com/danielm/symfony-demo-bundle/workflows/Tests/badge.svg)](https://github.com/danielm/symfony-demo-bundle/actions/workflows/tests.yml)\n[![Build Status](https://github.com/danielm/symfony-demo-bundle/workflows/PHPCsFixer/badge.svg)](https://github.com/danielm/symfony-demo-bundle/actions/workflows/php-cs-fixer.yml)\n[![Build Status](https://github.com/danielm/symfony-demo-bundle/workflows/PHPStan/badge.svg)](https://github.com/danielm/symfony-demo-bundle/actions/workflows/php-stan.yml)\n\nSee my blog post about this:\n\n[https://danielmg.org/php/2023/02/extending-symfony-bundle-flex-recipes-and-private-repositories.html](https://danielmg.org/php/2023/02/extending-symfony-bundle-flex-recipes-and-private-repositories.html])\n\n## About\n\nThis project is part  of my Post series about how to build a Symfony Flex Recipes repository (private or not).\n\nThis bundle is a demo that shows a couple of things yo can do on a Symfony bundle, such as:\n\n### Includes\n- Console Command: `bin/console demo:command`\n- DemoServiceInterface \u0026 DemoService: Example of some kind of Contract/Adapter-like patter of a service\n- Events: Custom event `UnnecessaryEvent` and simple EventSubscriber `DemoSubscriber`\n- DemoTwigExtension: Adds a twig function `demoFcn()`\n- Controller:\n  - Route `/{a}/{b}` -\u003e Simple endpoint that returns a Json response with some values and adds `a + b`\n  - Route `/view` -\u003e Simple endpoint that renders a Twig template and returns HTML\n  - Route `/dispatch/{md5_hash}` -\u003e Simple endpoint to test dispatching our `UnnecessaryEvent` \n- Configuration\n  - Using Bundle config parameters\n  - Using Custom Env variables `DEMO_SAMPLE_ENV`\n- Usage of Translations and public assets.\n\n## Install\n\n### Using Symfony Recipe\n\n```bash\ncomposer require danielm/symfony-demo-bundle\n```\n\n### Manually\nSame `composer` command as using the Recipe, you will also need to create/edit some files manually (that's what a Symfony recipe does for you)\n\n...\n\n## Composer scripts\nCoding Standards (*follows symfony's default rules*)\n```bash\n# Displays errors\ncomposer run cs:check\n# Makes changes\ncomposer run cs:fix\n```\nTesting\n```bash\ncomposer run test\n```\nPHP code analysis \n```bash\ncomposer run stan\n```\n\n## Todo\n- Validators examples\n- Serialization examples\n- Test Event \u0026 dispatcher\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielm%2Fsymfony-demo-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielm%2Fsymfony-demo-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielm%2Fsymfony-demo-bundle/lists"}