alchemy/phraseanet-bundle

Phraseanet API Symfony 扩展包

0.2.12 2021-11-23 17:04 UTC

README

License Packagist Travis Scrutinizer Coverage Scrutinizer Packagist

描述

为您的应用程序提供方便集成 Phraseanet PHP SDK 的 Symfony 扩展包

安装

composer require alchemy/phraseanet-bundle

配置

使用此扩展包,您可以定义一个或多个 Phraseanet 实例。每个实例都作为实体管理器公开。

phraseanet:
    default_instance: default
    instances:
        default:
            # Connection settings
            connection:
                client_id: PHRASEANET_APPLICATION_CLIENT_ID
                secret: PHRASEANET_APPLICATION_SECRET
                token: PHRASEANET_APPLICATION_TOKEN
                url: http://phraseanet-php55-nginx/
            # Cache settings (available cache types: redis, memcached, array, file, none)
            cache:
                type: redis
                host: localhost
                port: 6379
                validation: skip
            # Localized mappings to Phraseanet fields
            mappings:
                title:
                    fr: Titre
                    en: Title
                subtitle:
                    fr: SousTitre
                    en: SubTitle
            # Subdefinition mappings
            subdefinitions:
                low: preview
                medium: preview_X2
                high: preview_X4
            # Exposes the listed repositories in the container
            repositories:
                api.default.stories: story
                api.default.records: record