定制 survos/sais-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

survos/sais-bundle

最新稳定版本:2.0.96

Composer 安装命令:

composer require survos/sais-bundle

包简介

Integration with Survos Async Image Server

README 文档

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

统计信息

  • 总下载量: 1.22k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-09