Weave Code
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

Sdk Symfony Laravel Package

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.

View on GitHub
Deep Wiki
Context7

astroway/sdk-symfony

Official Symfony Bundle for astroway/sdk — DI registration, autowireable Astroway service, full config via Symfony's standard astroway.yaml.

Packagist version

Install

composer require astroway/sdk-symfony

The bundle auto-registers via Symfony Flex; if you opted out of Flex, add it manually to config/bundles.php:

return [
    // ...
    Astroway\Symfony\AstrowayBundle::class => ['all' => true],
];

Configure

Create config/packages/astroway.yaml:

astroway:
    api_key: '%env(ASTROWAY_API_KEY)%'
    base_url: 'https://api.astroway.info/v1'   # optional
    timeout: 30.0                                # optional, seconds
    auth_scheme: header                          # optional, header|bearer

Set ASTROWAY_API_KEY in .env.local.

Use

use Astroway\Astroway;

final class ChartController extends AbstractController
{
    public function __construct(private readonly Astroway $astroway) {}

    #[Route('/chart', methods: ['POST'])]
    public function chart(Request $request): JsonResponse
    {
        $body = json_decode($request->getContent(), true);
        $chart = $this->astroway->chart()->compute($body);
        return new JsonResponse($chart);
    }
}

Autowiring works out of the box — the bundle registers Astroway\Astroway as a public service.

Roadmap

  • 0.1.0-alpha.x — Bundle + DI registration (current).
  • 0.1.0-alpha.2+ — Compiler pass for astroway.namespace tagged services (decoration).
  • 0.1.0-beta.1AstrowayDataCollector for Symfony Profiler (Astroway calls visible in _profiler debug toolbar).
  • 0.1.0-rc.1 — Console commands (bin/console astroway:health, astroway:credits).
  • 0.1.0 — stable surface freeze.

Links

License

MIT — see LICENSE.

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.
croct/coding-standard
croct/plug-php
nqxcode/phpmorphy
boundwize/pyrameter
testo/facade
develia/commons
dmstr/symfony-system-resources-bundle
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
renatomarinho/laravel-page-speed
develia/geo-bundle
austinheap/laravel-database-encryption
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
imbo/imbo-coding-standard
visualbuilder/filament-lottie
servicioslineaonce/starter-kit
atomcoder/laravel-reorderable
irajul/filament-shadcn-theme