sumocoders/framework-example-bundle
Example bundle for the SumoCoders framework, built to demonstrate how to structure, configure, and integrate a reusable Symfony bundle. It offers sample controllers, templates, and services, serving as a practical starting point and reference for building your own bundles.
Treat sumocoders/framework-example-bundle as a reference scaffold, not a dependency to install into a live application. With zero stars, zero dependents, no releases since 2017, and an archived repository, its day-to-day value is limited to showing how a Sumocoders-era Symfony bundle was structured.
Look first at:
README.md and composer.json for intended Symfony/PHP versions and package namesrc/ and its DependencyInjection/ extensionResources/config/services.yml and Resources/config/routing.ymlController/, Entity/, Resources/views/, and Tests/Minimal first use case: clone or fork the repository and use it as a checklist when creating an internal Symfony bundle. If you must run it, do so in a throwaway Symfony 3.x-era application: register the bundle in AppKernel, import its routing file, install assets, then clear the cache. For a modern Symfony project, copy the patterns rather than the code: convert YAML service definitions to PHP attributes or explicit service config, replace AppKernel registration with Flex/bundles.php, and use modern bundle structure.
Common ways a developer would actually use this package:
DependencyInjection/Extension.php, Configuration.php, service YAML, routing import, controller, entity, and test layout against the example.AppKernel::registerBundles(), import routing with the bundle prefix, load services through the extension, and install public assets.services.yml, follow that pattern in your own bundle, but account for Symfony 4+ private-service defaults.Tests/ structure for KernelTestCase or WebTestCase examples when bootstrapping bundle tests.For day-to-day work, keep it as a local reference repository or submodule in a sandbox. Do not make it a transitive dependency of an application bundle.
AppKernel, Resources/config/services.yml, and web/ assets. These do not map cleanly to Symfony 6/7, Flex, PHP attributes, or AssetMapper/Encore.composer.json first. Do not use --ignore-platform-reqs outside a throwaway environment.Configuration root and the bundle alias used in YAML. Old bundles often assume non-autowired services.bin/console debug:container, debug:router, lint:yaml, lint:twig, and cache:clear. Check the Symfony log directory when services or routes fail to load.Resources/public and Resources/views conventions may need explicit registration in modern Symfony. Template overrides depend on the bundle name and path.How can I help you explore Laravel packages today?