appliance / namirial-php
A PHP package for work with namirial sws
Requires
- php: ^7.1
- ext-soap: *
- ext-xml: *
- symfony/var-dumper: ^4.2
This package is auto-updated.
Last update: 2024-12-17 08:04:16 UTC
README
Small PHP library for Namirial SWS services.
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