survos/sais-bundle

Integration with Survos Async Image Server

Maintainers

👁 tacman1123

Package info

github.com/survos/sais-bundle

Type:symfony-bundle

pkg:composer/survos/sais-bundle

Fund package maintenance!

kbond

Statistics

Installs: 1 260

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

2.0.100 2026-01-12 02:06 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 3835ceb449d81df0cf13b4f81050697cbac3e60f

symfonyresizeThumbnailssymfony-ux

This package is auto-updated.

Last update: 2026-06-12 15:30:57 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

Using the JSON RPC MCP Tool

See JSONRPC.md for detailed instructions on using the JSON RPC MCP Tool.

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 = ...
 }