Skip to content

MwSpaceLLC/namirial-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Appliance Library

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

About

A PHP package for work with namirial sws

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages