PHP code example of guigzz / silex-wsse
1. Go to this page and download the library: Download guigzz/silex-wsse library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
guigzz / silex-wsse example snippets
$app->register(new Guigzz\Wsse\WsseAuthServiceProvider(), array(
'wsse.security_dir' => __DIR__ . '/../cache/security',
'wsse.valid_time_window' => 300,
'wsse.user' => $app->share(function ($app) { return $app['dao.user']; })
));
$app['security.firewalls'] = array(
'api' => array(
'pattern' => '^/api/',
'stateless' => true,
'wsse' => true,
)
);