1. Go to this page and download the library: Download mittax/wsse-bundle 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/ */
mittax / wsse-bundle example snippets
.....
new Mittax\WsseBundle\MittaxWsseBundle(),
integrationtestsusername: mittax
//your clientobject
$client = $this->container->get('mittax_wsse.client.service.http.request');
//API Url you want to call
$uri = 'http://<yourdomain>/wsse/username';
//the username who wants to access. (Must exists in your user database)
$username = 'yourusername';
//the wsse header to consume secured api
$headerOptions = $client->getWsseHeaderRequestOtionsByUsername($username);
//your serverresponse
$response = $client->request('GET', $uri, $headerOptions);
$response = (string)$response->getBody();
bin/console mittax:wsse:generate-header
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.