cedricziel / shariff-bundle
Symfony2 的 Heise Shariff 包
1.0.0
2016-05-13 11:51 UTC
Requires
- php: >=5.5.9
- heise/shariff: ~5.2.3
- symfony/framework-bundle: >=3.0.6
- twig/twig: ~1.23|~2.0
Requires (Dev)
- phpunit/phpunit: ^5.3
This package is auto-updated.
Last update: 2024-08-28 10:54:36 UTC
README
从 https://github.com/valiton/ShariffBundle 分支而来
此包允许您轻松地将 Shariff 集成到您的 Symfony 2 应用程序中
安装
使用 composer 安装包
composer require cedricziel/shariff-bundle
并在您的 kernel 中激活该包。
将以下内容添加到您的 app/config/routing.yml 中
cedricziel_shariff:
resource: "@CedricZielShariffBundle/Resources/config/routing.xml"
prefix: /_shariff
配置
根据您的需求配置包,完整的配置示例
cedricziel_shariff:
domain: '<your-domain>'
force_protocol: ~ # http or https
cache:
cacheDir: '%kernel.cache_dir%'
ttl: 3600
adapter: 'Apc' # to use apc for caching,
client: # optinal guzzle settings
timeout: 4
connect_timeout: 2
services:
Facebook:
app_id: <your app id>
secret: <your secret>
GooglePlus: ~
Twitter: ~
许可证
MIT