anh / sape-bundle
Bundle provides symfony integration for sape.ru
Installs: 172
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- anh/sape-php-client: ~1.2
README
Bundle provides symfony integration for sape.ru
Installation
Install via composer with command:
$ php composer.phar require 'anh/sape-bundle:~2.0'
Enable bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Anh\SapeBundle\AnhSapeBundle() ); // ... }
Configuration
#config.yml anh_sape: user: '...' # your sape user id (f.e. 80e20e4a72a1d09895763b4b1bc98e63) client_options: { charset: 'utf8' } # options for SAPE_client, not required, default: {charset: 'utf8'}
Usage
Twig functions:
{{ sape_return_links() }}
{{ sape_return_block_links() }}
Notes
Currently implemented only SAPE_client
class