survos/sais-bundle
Integration with Survos Async Image Server
Maintainers
Fund package maintenance!
2.0.100
2026-01-12 02:06 UTC
Requires
- php: ^8.4
- fguillot/json-rpc: ^1.3
- onliner/imgproxy-php: ^0.2
- symfony/config: ^7.3||^8.0
- symfony/console: ^7.3||^8.0
- symfony/dependency-injection: ^7.3||^8.0
- symfony/http-client: ^7.3||^8.0
- symfony/http-kernel: ^7.3||^8.0
- symfony/serializer: ^7.3||^8.0
- symfony/validator: ^7.3||^8.0
- symfony/webhook: ^7.3 | ^8.0
- twig/twig: ^3.4
- zircote/swagger-php: ^5.1.4
Requires (Dev)
- mezcalito/imgproxy-bundle: ^0.5.1
- phpstan/phpstan: ^2.0
- symfony/browser-kit: ^7.3||^8.0
- symfony/framework-bundle: ^7.3||^8.0
- symfony/messenger: ^7.3||^8.0
- symfony/phpunit-bridge: ^7.3||^8.0
- symfony/stopwatch: ^8.0
- symfony/twig-bundle: ^7.3||^8.0
- symfony/var-dumper: ^7.3||^8.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 3835ceb449d81df0cf13b4f81050697cbac3e60f
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 = ... }
