astroway/sdk-symfony
Official Symfony bundle for astroway/sdk. Provides DI registration and an autowireable Astroway service with standard Symfony configuration via astroway.yaml (API key, base URL, timeout, auth scheme). Works with Symfony Flex or manual bundle registration.
astroway/sdk) is decoupled from the Symfony bundle, allowing potential reuse in non-Symfony contexts (e.g., Laravel via manual DI). However, the bundle’s core value (autowiring, config management) is Symfony-specific.AstrowayDataCollector, console commands) suggest a growing ecosystem, but current maturity is alpha (no stable release). This implies higher risk for production adoption.AppServiceProvider (replicating Symfony’s DI setup).config/astroway.php to mirror astroway.yaml.Astroway service with Laravel’s container binding.astroway/sdk (>=0.1.0-alpha.0) and Symfony’s core bundles (framework-bundle, config, etc.). Laravel projects would need to polyfill or mock Symfony dependencies, increasing complexity..env-driven config would need translation to YAML or PHP arrays, adding friction.0.1.0.config(), app()). Custom integration would be required.guzzlehttp/guzzle + custom wrapper) that achieve similar goals with lower risk?.env vs. Symfony’s YAML?AppServiceProvider):
$this->app->singleton(Astroway::class, function ($app) {
return new Astroway(
apiKey: config('astroway.api_key'),
baseUrl: config('astroway.base_url', 'https://api.astroway.info/v1'),
// ... other config
);
});
Extension, Bundle) with Laravel equivalents.astroway/sdk alone (without the Symfony bundle) meets needs. If yes, skip the bundle entirely.astroway/sdk + custom wrapper or a different package.symfony/* packages (e.g., symfony/http-client). Solutions:
illuminate/http or guzzlehttp/guzzle instead of Symfony’s HttpClient..env + config/ vs. Symfony’s YAML. Bridge via:
// config/astroway.php
return [
'api_key' => env('ASTROWAY_API_KEY'),
'base_url' => env('ASTROWAY_BASE_URL', 'https://api.astroway.info/v1'),
];
astroway/sdk to composer.json.config/astroway.php.Astroway service in AppServiceProvider.php artisan astroway:health).astroway/sdk and astroway/sdk-symfony for updates. Breaking changes in either could require Laravel-specific patches.astroway.yaml → Laravel’s config).Illuminate\Support\Facades\Http vs. Symfony’s HttpClient).| Risk | Symptoms | Mitigation |
|---|---|---|
| Bundle Breaking Change | Autowiring fails, config ignored. | Pin to 0.1.0-alpha.1; fork if critical. |
| Symfony Dependency Conflict | Composer install fails. | Use replace in composer.json or isolate Symfony packages. |
| API Key Leaks | Hardcoded keys in config. | Enforce .env usage; audit config files. |
| Laravel-Symfony DI Clash | Service not resolvable. | Test in staging; add fallback to manual instantiation. |
| Undocumented Behavior | Unexpected API calls/logging. | Review astroway/sdk source; add logging in custom wrapper. |
Extension, Configuration).How can I help you explore Laravel packages today?