phillarmonic/crescendo-var-bundle
A Symfony bundle that integrates the Crescendo VAR library with Symfony’s service container and configuration system, providing the wiring needed to use Crescendo’s variable utilities in PHP applications with minimal setup.
composer require phillarmonic/crescendo-var-bundle.-bundle suffix means this is a Symfony bundle, not a Laravel package. There is no ServiceProvider and Composer auto-discovery will not pick it up in a Laravel app.config/bundles.php and add a config/packages/crescendo_var.yaml block. In Laravel, you'll either (a) run it inside a Symfony sidecar service, or (b) if the core classes are framework-agnostic, instantiate them manually from your own service provider — verify by inspecting src/ before committing.DependencyInjection/Configuration.php — the config schema tells you what a "variable" actually is here (config value, env var, runtime token, template var).DependencyInjection/*Extension.php — what services get registered and under which IDs.bin/console debug:container | grep -i crescendo (or debug:container <id> --show-arguments) to confirm it registered and to discover the concrete service ID. That one command will tell you more than the README.config/packages/crescendo_var.yaml, then consume them via constructor injection of the exposed service rather than reaching for the container. This keeps your code testable and lets config be environment-switched (when@dev, when@prod).$container->get(). Add the variable service as a dependency on the consumers (controllers, services, Twig extensions). If the bundle exposes a locator/registry, inject that and resolve by name at the point of use.CrescendoVarServiceProvider that binds the underlying class as a singleton and publishes a config stub. Do not attempt to register the Symfony bundle class in a Laravel app — it expects a Kernel/ContainerBuilder lifecycle.php artisan vendor:publish, and config/app.php provider registration all do nothing here. Budget time to read the DI extension.composer.json, read composer.lock after install, and skim the source for env()/getenv() calls and any eval/dynamic class loading before it touches production.bin/console cache:clear / rm -rf var/cache). Stale compiled containers are the most common "it's not picking up my variable" cause.debug:container to find service IDs, debug:config crescendo_var to see the merged config, and debug:event-dispatcher if the bundle hooks kernel events. In Laravel, php artisan about won't help — inspect the bound instance directly.config() call if all you need is static configuration — reserve this bundle for cases where its resolution logic (ordering, typing, lazy evaluation) genuinely earns its keep.How can I help you explore Laravel packages today?