spiechu/symfony-commons-bundle
Symfony Commons Bundle provides reusable helpers and base classes for Symfony applications, including common controller, service, and Doctrine utilities that reduce boilerplate and speed up building standard CRUD and admin features.
composer require spiechu/symfony-commons-bundle. This is a Symfony bundle, not a Laravel package — it does not ship a ServiceProvider, does not support package auto-discovery, and will not boot in a Laravel app. If your stack is Laravel-first, treat this as a reference implementation to copy patterns from rather than a dependency to require.src/ for the value objects (the 0.3 release hardened them with assert()), then DependencyInjection/ for the Extension and Configuration classes — that is the only surface you would actually interact with day-to-day. After that, the functional tests (added in 0.3) are the best documentation of intended wiring.config/bundles.php, then run bin/console debug:container --tag=data_collector to confirm the collector was registered before assuming anything is broken. Most "bundle does nothing" reports are just missing registration or a disabled profiler.assert() idiom into app/ValueObjects or a shared packages/ directory. That is the highest-value, lowest-risk thing here — the 0.3 release explicitly hardened it, and it has zero Symfony coupling.assert() usage inside value objects. The useful pattern is assert($this->id !== '')-style guards at construction. In Laravel, mirror this but wrap the checks in InvalidArgumentException (or a domain Exception) so they always fire regardless of zend.assertions. Reserve raw assert() for genuinely internal sanity checks.src/DependencyInjection/Compiler/ pass in your app that re-tags or decorates the service. This is the supported extension point and keeps upgrades clean.config/packages/dev/ only and confirm the panel appears. Do not wire it in prod — it is debug tooling and adds nothing there.0.3.* or the exact tag) rather than ^0.3, and budget for a review on each upgrade.composer require in a Laravel app installs classes that never boot. Do not add it to config/app.php providers — it will fail. If you only want individual classes, verify they have no Symfony runtime dependencies before pulling them in.assert() is disabled in production by default (zend.assertions=-1). If the value objects rely solely on assert() for validation, invalid state can slip through in prod without error. Before reusing any guard, decide whether it is a hard invariant (use exceptions) or a dev-only sanity check.mixed in places. Read the actual signatures before relying on them.config/bundles.php and config/packages/ against them before suspecting the bundle.assert()) is internal quality work. If you had a Twig stub workaround, remove it — it is now redundant and may mask the real setup.How can I help you explore Laravel packages today?