rogerbca/corezero-bundle
Symfony bundle that integrates rogerbca/corezero into Symfony applications. It handles bundle registration, service and configuration wiring, and gives projects a clean starting point for using CoreZero with standard Symfony conventions and minimal setup.
Reality check before you start: rogerbca/corezero-bundle is a Symfony bundle ("Base de desarrollo en symfony"), not a Laravel package. You cannot composer require it into a Laravel app and expect service providers, facades, or Artisan commands. Either you are working inside a Symfony project, or you are reading this bundle as reference material for ideas. Confirm which situation you're in before investing time.
Assumptions to verify first (the repo has 0 stars, 0 dependents, and a near-zero score — treat every claim here as "check the source"):
composer.json — check type (symfony-bundle), the require block (PHP and symfony/* constraints), and autoload PSR-4 namespaces. This tells you immediately whether it will even install against your Symfony version.DependencyInjection/ — the *Extension and Configuration classes reveal every config key and default. This is the real documentation for a bundle this small.Resources/config/services.yaml (or .php/.xml) — this is the actual inventory of what the bundle registers: base controllers, entities, repositories, event subscribers, commands.Minimal install path (Symfony):
composer require rogerbca/corezero-bundle
Then register the bundle in config/bundles.php (Flex may do it automatically if the bundle declares a recipe):
return [
// ...
RogerBCA\CoreZeroBundle\CoreZeroBundle::class => ['all' => true],
];
First use case: instantiate or extend the bundle's base controller/entity/repository for one trivial CRUD resource, wire a route to it, and confirm rendering and persistence work end-to-end. Do this before adopting it broadly — with no dependents in the wild, you are the primary tester.
Extend, don't compose. Starter/base bundles typically ship abstract BaseController, BaseEntity, or BaseRepository classes. The idiomatic pattern is inheritance:
use RogerBCA\CoreZeroBundle\Controller\BaseController;
class ProductController extends BaseController
{
// inherit CRUD scaffolding, override what you need
}
If the bundle instead exposes tagged services or interfaces, prefer tagging over inheritance — but verify which style it uses by reading the source.
Configuration-driven behavior. Most Symfony base bundles expose a config tree. Publish/inspect defaults with:
bin/console config:dump-reference core_zero
(The root key is derived from the extension alias — confirm it in the Extension class; it may be core_zero, corezero, or similar.) Then override in config/packages/core_zero.yaml.
Service overrides via compiler pass. If the bundle defines services you want to replace, override the service ID in your app's services.yaml rather than editing vendor code:
services:
core_zero.some_service:
class: App\Service\MyReplacement
Confirm the exact service IDs with bin/console debug:container --show-private | grep core.
Event subscriber integration. Base bundles often hook kernel.request, kernel.response, or Doctrine lifecycle events. Inspect with:
bin/console debug:event-dispatcher
If you need to disable a built-in subscriber, look for a config toggle before resorting to container->removeDefinition() in a compiler pass.
Scaffold-and-fork pattern. Given the low maturity signal, the most defensible workflow is: pull the bundle in, extract the base classes you want into src/, then remove the dependency. You get the scaffolding without the maintenance liability. If you keep the dependency, pin it exactly ("rogerbca/corezero-bundle": "1.0.0" — no caret) and commit composer.lock.
For Laravel developers specifically: map the concepts — bundle registration ≈ service provider registration, Configuration tree ≈ config/*.php files, compiler passes ≈ container extend/binding overrides, bin/console ≈ artisan. The mental model transfers, but nothing is drop-in.
php artisan, no config/app.php providers array, no facades. If a Laravel task is what brought you here, this package is almost certainly not the answer.require block may pin to an old Symfony major (e.g. ^4.4 or ^5.0). Installing against Symfony 6/7 will either fail resolution or silently work until a runtime deprecation bites. Check PHP constraints too.config/bundles.php yourself. A missing registration produces confusing "service not found" errors rather than a clear "bundle not loaded" message.getAlias() in the *Extension class. Guessing wrong means your YAML is silently ignored.bin/console debug:container <service>, debug:router, debug:event-dispatcher, and debug:config <alias> rather than var_dump. Set APP_DEBUG=1 and watch var/log/dev.log.composer.json and run composer dump-autoload after adding directories.src/. If the package is abandoned, you swap implementations in one place instead of across the codebase.composer audit and read any code that touches request input, SQL, or file handling before relying on it.How can I help you explore Laravel packages today?