dsyph3r/google-geolocation-bundle
DependencyInjection, EventDispatcher) are incompatible without heavy refactoring.illuminate/http.HttpClient (Laravel 9+). A rewrite would require replacing Buzz with a modern client..env files for secrets, requiring a configuration abstraction layer.ContainerInterface is incompatible with Laravel’s Container or ServiceProvider. A facade or service provider wrapper would be needed to expose geolocation services.@route annotations) and controllers differ from Laravel’s. A custom Laravel service or API resource would replace the bundle’s controller logic.ServiceProvider)..env support).spatie/laravel-google-maps) instead.spatie/laravel-google-maps, googleapis/client)?HttpClient (Laravel 9+).ServiceProvider or Binding in Laravel 8+..env for API keys, validated via Laravel’s Config or Vault.| Step | Action | Tools/Dependencies | Effort |
|---|---|---|---|
| 1 | Extract Core Logic | Manual refactoring | Medium |
| 2 | Replace Buzz with Guzzle | Guzzle 7, Laravel HttpClient | Low |
| 3 | Adapt to Laravel Container | ServiceProvider, bind() |
Medium |
| 4 | Implement .env Support |
Laravel’s config() helper |
Low |
| 5 | Rewrite Controllers/Routes | Laravel’s Route::get(), Controller |
Medium |
| 6 | Add Testing | PestPHP, Guzzle mocks | High |
| 7 | Publish as Package | Composer, Laravel Package Boilerplate | Medium |
array() syntax, foreach changes) may need modernization.kernel.request), these must be replaced with Laravel’s service events or observers.ServiceProvider..env and validate loading.Cache facade) to reduce API calls.ContainerAware) may cause confusion.OVER_QUERY_LIMIT, ZERO_RESULTS).Cache or Redis.How can I help you explore Laravel packages today?