authbucket/push-symfony-bundle
authbucket/push-php library (required dependency) may contain reusable logic (e.g., APNs/GCM payload formatting, OAuth2 token management), but the Symfony-specific abstractions (e.g., ServiceProvider, Bundle structure) are non-portable.laravel-notification-channels/onesignal, spatie/laravel-newsletter, or custom Firebase/APNs integrations). This bundle offers no unique advantage for Laravel.ContainerInterface vs. Laravel’s Container/ServiceProvider.EventDispatcher vs. Laravel’s Events facade.Bundle system vs. Laravel’s Package/ServiceProvider model.authbucket/push-php library (~1.0) could be manually adapted for Laravel. However, this requires significant refactoring and no official support.framework-bundle, security-bundle), which are incompatible with Laravel’s ecosystem.authbucket/oauth2-symfony-bundle (~3.0) is Symfony-specific and not Laravel-compatible.Notification system already supports push via channels like onesignal, firebase, or web-push).onesignal) are better maintained.authbucket/push-php, what specific components are needed (e.g., payload generation, token refresh)? Can these be extracted cleanly?AuthBucketPushServiceProvider and Bundle structure cannot be ported without a full rewrite.authbucket/push-php library (~1.0) could be used as a reference for:
authbucket/oauth2-symfony-bundle as a guide).Illuminate\Contracts\Container\Container could theoretically replace Symfony’s ContainerInterface, but this requires manual binding of all services.| Step | Action | Laravel Equivalent | Risk |
|---|---|---|---|
| 1 | Replace Symfony\Bundle\Bundle |
Laravel ServiceProvider |
High (architecture mismatch) |
| 2 | Replace ContainerInterface |
Laravel Container + manual binding |
Medium (DI complexity) |
| 3 | Replace EventDispatcher |
Laravel Events facade |
Low (simple facade swap) |
| 4 | Replace Symfony DBAL/Doctrine | Laravel Eloquent/Query Builder | Medium (schema differences) |
| 5 | Adapt AuthBucketPushServiceProvider |
Laravel ServiceProvider with register()/boot() |
High (undocumented logic) |
| 6 | Replace SwiftMailer | Laravel Mail facade (if using email fallback) |
Low |
onesignal, firebase) or a custom service built on authbucket/push-php.authbucket/push-php and rewrite dependencies to use Laravel’s abstractions.HttpClient with Laravel’s Http or Guzzle.Bundle system has no direct equivalent in Laravel. Even if services are manually bound, configuration (e.g., config.yml) and routing (routing.yml) are incompatible.authbucket/oauth2-symfony-bundle) could be ported to Laravel using packages like lcobucci/jwt or league/oauth2-client.authbucket/push-php) could be adapted with minimal effort.authbucket/push-php against Laravel-native solutions (e.g., spatie/laravel-newsletter, laravel-notification-channels).authbucket/push-php is the target, extract only the needed classes (e.g., PushMessage, PushClient) and rewrite dependencies.monolog-bundle, security-bundle) are unsupported and may introduce security risks.onesignal) reduces maintenance to bug fixes and minor config updates.authbucket/push-php, support would depend on how cleanly the code is extracted.laravel-queue) is more mature for push notifications than Symfony’s event system.jobs/queues are better suited than Symfony’s Console commands.How can I help you explore Laravel packages today?