survos / sais-bundle
Integration with Survos Async Image Server
Fund package maintenance!
kbond
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^8.3
- symfony/config: ^6.4 || ^7.1
- symfony/dependency-injection: ^6.4 || ^7.1
- symfony/http-client: ^6.4 || ^7.1
- symfony/http-kernel: ^6.4 || ^7.1
- twig/twig: ^3.4
Requires (Dev)
- phpstan/phpstan: ^2.0
- symfony/browser-kit: ^6.4 || ^7.1
- symfony/framework-bundle: ^6.4 || ^7.1
- symfony/phpunit-bridge: ^6.4 || ^7.1
- symfony/twig-bundle: ^6.4 || ^7.1
- symfony/var-dumper: ^6.4 || ^7.1
- dev-main
- 1.5.464
- 1.5.463
- 1.5.462
- 1.5.461
- 1.5.460
- 1.5.459
- 1.5.458
- 1.5.457
- 1.5.456
- 1.5.455
- 1.5.454
- 1.5.453
- 1.5.452
- 1.5.451
- 1.5.450
- 1.5.449
- 1.5.448
- 1.5.447
- 1.5.446
- 1.5.445
- 1.5.444
- 1.5.443
- 1.5.442
- 1.5.441
- 1.5.440
- 1.5.439
- 1.5.438
- 1.5.437
- 1.5.436
- 1.5.435
- 1.5.434
- 1.5.433
- 1.5.432
- 1.5.431
- 1.5.430
- 1.5.429
- 1.5.428
- 1.5.427
- 1.5.426
- 1.5.425
- 1.5.424
- 1.5.423
- 1.5.422
- 1.5.421
- 1.5.420
This package is auto-updated.
Last update: 2025-01-09 00:39:47 UTC
README
A simple bundle that facilitates calling the Survos Async Image Service from an application
composer require survos/sais-bundle
@todo: Get an API key at https://sais.survos.com and add it to your .env.local
# .env.local
SAIS_API_KEY=your-api-key
Calls
Inject the service and make the calls
@todo: command that sends batches of images #[Route('/featured', name: 'app_list_featured_projects')] public function listFeatured(SaisClientService $saisService): Response { $payload = new \Survos\SaisBundle\Model\ProcessPayload( $images, ['small'], $this->urlGenerator->generate('app_webhook') ); $saisService->dispatchProcess($payload); } #[Route('/webhook', name: 'app_webhook')] public function webHook(): Response { $data = ... }