valiton / shariff-bundle
Symfony2 bundle for Shariff php backend
Installs: 1 714
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 19
Forks: 0
Open Issues: 2
Type:symfony-bundle
Requires
- php: >=5.3.0
- friendsofsymfony/rest-bundle: ~1.2
- heise/shariff: ~1.0
- symfony/framework-bundle: >=2.1.0
- twig/twig: ~1.23|~2.0
This package is auto-updated.
Last update: 2024-11-16 15:24:24 UTC
README
This bundle allows to easily integrate Shariff with your Symfony 2 application
Installation
Install the bundle with composer:
composer require valiton/shariff-bundle
and activate the bundle in your kernel.
Add the following to your app/config/routing.yml:
valiton_shariff:
resource: "@ValitonShariffBundle/Resources/config/routing.xml"
prefix: /shariff
Configuration
Configure the bundle according to your needs, full config example:
valiton_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: ~