Bundle provides symfony integration for sape.ru
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()
);
// ...
}
#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'}
Twig functions:
{{ sape_return_links() }}
{{ sape_return_block_links() }}
Currently implemented only SAPE_client class
How can I help you explore Laravel packages today?