appliance/namirial-php

A PHP package for work with namirial sws

dev-master 2019-02-06 18:51 UTC

This package is auto-updated.

Last update: 2024-04-17 06:23:07 UTC


README

Small PHP library for Namirial SWS services.

PHP Version Status Require
PHP 7.2 In Dev Composer

Install Library:

composer require appliance/namirial-php

Free Use (Verify Only)

Start Appliance Object & Retrive content of CAdES, XAdES & PAdES:

$namirial = new Appliance\Namirial\Service;
$namirial->verify('path/to/file.p7m')->dump()
// or 
$namirial->verify('path/to/file.xml')->dump()

🤑 The class will connect via http protocol to Namirial WSDL & check the file signature.

Commercial Use

Start Appliance Object:

$namirial = new Appliance\Namirial\Service('ip address of sws');

$namirial->setAgent('username', 'password');

💻 The class will connect via http protocol to your Web Service and load the functions from the WSDL

Sign File (CAdES,XAdES,PAdES)

$namirial->sign('path/to/file/ALB1666197.xml'); 

🚀 The appliance will discover the file format automatically by choosing the most appropriate format for you

Verify File (CAdES,XAdES,PAdES)

$namirial->verify('path/to/file/ALB1666197.p7m'); 

🎂 The appliance will verify the signature of the file if it is trusted or not

Save File (CAdES,XAdES,PAdES)

$namirial->save('path/to/file/ALB1666197_signed.xml'); 

👻 The appliance will save the file in a directory by creating it if necessary