Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Google Bundle

Google Bundle Laravel Package

antimattr/google-bundle

View on GitHub
Deep Wiki
Context7

Google Bundle for Symfony2

Frequently asked questions about Google Bundle
Can I use GoogleBundle directly in Laravel without modifications?
No, GoogleBundle is built for Symfony2 and won’t work out-of-the-box in Laravel. You’d need to rewrite core components like OAuth handlers, events, and routing to fit Laravel’s service container and routing system. The bundle’s monolithic structure also clashes with Laravel’s modular Composer-based workflow.
What’s the easiest way to integrate Google OAuth in Laravel instead?
Use **laravel/socialite** with the **socialiteproviders/google** package. This combo handles OAuth flows natively, supports Laravel’s auth system (e.g., HasApiTokens), and avoids Symfony2 dependencies. GoogleBundle’s OAuth implementation would require significant refactoring to match Laravel’s session/cookie storage for state management.
Does GoogleBundle support modern Laravel versions (8.x/9.x/10.x)?
No, it’s designed for Symfony2 and lacks compatibility with Laravel’s dependency injection, routing, or service container. Even if you abstract core logic, you’d face breaking changes in Laravel’s auth, events, or middleware systems. Test thoroughly if attempting a fork.
How do I migrate Symfony2’s config.yml to Laravel’s .env or config files?
Replace `config.yml` with Laravel’s `.env` for secrets (e.g., `GOOGLE_CLIENT_ID`, `GOOGLE_CLIENT_SECRET`) and a `config/google.php` file for app-specific settings. Validate required keys in `bootstrap/app.php` or a service provider. Avoid hardcoding values—Laravel’s config caching can break dynamic overrides.
Are there hard Symfony2 dependencies I need to polyfill?
Yes, dependencies like `symfony/security`, `symfony/dependency-injection`, or `symfony/http-kernel` won’t work in Laravel. Use Laravel’s equivalents (e.g., `illuminate/auth`, `illuminate/container`) or polyfills like `symfony/polyfill` sparingly. Audit the bundle’s `composer.json` for hidden Symfony2 ties.
Can I use GoogleBundle’s Google API clients in Laravel?
Indirectly, but it’s simpler to use the official **google/apiclient** package directly. GoogleBundle likely wraps this library, so you’d lose little by replacing its client logic with a Laravel service. Wrap the client in a service provider to manage configuration and retries (e.g., for Google Workspace APIs).
How do I replace Symfony2’s EventDispatcher with Laravel’s events?
Replace `EventDispatcher` calls with Laravel’s `event()` helper or `Event` facade. For example, convert `$dispatcher->dispatch('google.auth', $event)` to `event(new GoogleAuthEvent($data))`. Listen to events in `EventServiceProvider` or via middleware. Avoid bundle-specific event names—prefix them (e.g., `google.oauth.success`).
What’s the performance impact of using GoogleBundle in Laravel?
High risk of overhead due to Symfony2’s monolithic design, event listeners, and potential duplicate services (e.g., OAuth + API clients). Laravel’s native packages (like `socialiteproviders/google`) are optimized for minimalism. Profile with Laravel Debugbar to spot bottlenecks in service loading or route resolution.
Has anyone forked GoogleBundle for Laravel? What were the blockers?
No widely adopted Laravel fork exists, primarily due to Symfony2’s deep integration with its kernel, security, and DI systems. Blockers include rewriting OAuth state management (Symfony2 uses sessions differently), adapting routing annotations to Laravel’s `Route::get()`, and replacing `ContainerInterface` with Laravel’s `Container`. A partial fork might work for specific APIs (e.g., Google Drive) but not full OAuth.
What’s the maintenance cost of using GoogleBundle in Laravel long-term?
Very high. Symfony2’s ecosystem is stagnant, and Laravel’s updates may break compatibility (e.g., changes to the service container or auth system). Plan for annual refactoring or a full rewrite as a Laravel package. Consider contributing back to the community if you fork it—maintainers may merge improvements for broader Symfony/Laravel support.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource