- Can I use jbouzekri/phumbor-bundle in a Laravel application?
- No, not usefully. It is a Symfony bundle whose main value is Symfony dependency-injection wiring, YAML config, and Twig integration. Laravel has no bundle loader or DI extension, so that wiring will not execute. Use the framework-agnostic 99designs/phumbor client directly instead.
- How do I install and configure jbouzekri/phumbor-bundle in Symfony?
- Install it with Composer, register the bundle in your Symfony application, and configure the Thumbor server URL and security secret under the bundle's config key. The bundle turns those settings into a configured Phumbor client service and exposes Twig helpers for building image URLs. Version 4.x targets Symfony 8, so check the supported Symfony and PHP versions before upgrading.
- What is the Laravel equivalent of PhumborBundle?
- There is no official Laravel equivalent. The underlying 99designs/phumbor package is framework-agnostic and works in Laravel without the bundle. A small service provider that binds a configured Thumbor URL builder factory is usually all you need.
- Does jbouzekri/phumbor-bundle support Laravel 10, 11, or 12?
- The question does not really apply because this package does not target Laravel at all. Its version support is tied to Symfony majors, and the 4.x line targets Symfony 8. Any Laravel version compatibility would come from 99designs/phumbor and its PHP constraints, not from this bundle.
- How do I generate signed Thumbor image URLs in Laravel?
- Use 99designs/phumbor directly. Configure your Thumbor server and secret, construct a Thumbor URL builder factory, and call its resize, crop, and filter methods to produce signed URLs. Bind that factory as a singleton in a Laravel service provider so controllers and Blade views can reuse it. The bundle's Twig helpers will not work in Laravel Blade.
- Is jbouzekri/phumbor-bundle actively maintained?
- The 4.0.0 release shows the maintainer is alive and tracking Symfony 8 promptly. However, adoption is low, with around 26 stars and no dependents, and releases are driven by Symfony major-version churn rather than Thumbor features. For a Laravel application, maintenance of the Symfony wiring is largely irrelevant.
- What are the risks of installing jbouzekri/phumbor-bundle in a Laravel app?
- You would pull in Symfony bundle, DI, config, and Twig dependencies whose integration code never runs in Laravel. You would also inherit a Symfony-major upgrade treadmill with no compensating Laravel benefit. The bundle has low adoption and a single-maintainer release model, so it is better to depend on the underlying client directly.
- How do I test Thumbor URL generation in Laravel?
- Bind a fake or mock Thumbor URL builder factory in the Laravel container, or wrap the client in a small service you can inject and assert against. The bundle provides no Laravel-native config publishing, .env conventions, or fake helper. Test the signed URL strings produced by your wrapper rather than testing the Symfony bundle.
- What Thumbor operations can I use with Phumbor in Laravel?
- You can use the Thumbor URL builder operations exposed by 99designs/phumbor, such as resize, crop, and filters, to generate signed image URLs. In Symfony the bundle exposes Twig helpers for these operations, but in Laravel you would call the client from a service, controller, or Blade directive. The security key is used to sign the generated URLs.
- Should I use PhumborBundle or 99designs/phumbor directly in Laravel?
- Use 99designs/phumbor directly. The bundle's value is Symfony DI configuration and Twig integration, neither of which Laravel uses. A short Laravel service provider adapter that reads THUMBOR_SERVER and THUMBOR_SECRET from config is enough. Avoid adding the Symfony bundle dependency unless you are actually building a Symfony application.