Pular para o conteúdo principal

PHP Plain Samples Project

This samples project shows how to use PKI Express together with the Web PKI browser component on a PHP 5.5+ plain project (including 7.x). This project is hosted on GitHub:

https://github.com/LacunaSoftware/PkiSuiteSamples/tree/master/php/plain

note

If you are using a previous version of PHP, please contact us.

Running The Project​

Follow these steps to run the sample:

  1. Install PKI Express
  2. Download the project or clone the repository: https://github.com/LacunaSoftware/PkiSuiteSamples.git
  3. Navigate to the folder /php/plain
  4. In a command prompt, run the command composer install to install the dependencies (if you don't have Composer installed, get it here)
  5. Execute the project by running the command composer start
  6. Access the URL http://localhost:8000

Project Map​

This section lists where to find the relevant parts in each feature sample on the project:

Authentication With Digital Certificates​

PAdES Signature With File Already on Server​

After choosing one of the available server files (which is crudely implemented for demonstration purposes on index.php and action.php), the control flow is performed by the following files:

PAdES Signature With File Uploaded by User​

After the file upload (which is crudely implemented for demonstration purposes on upload.php) is done, the control flow is performed by the following files:

PAdES Co-Signature​

After choosing one of the available already-signed server files (which is crudely implemented for demonstration purposes on index.php and action.php), the control flow is performed by the following files:

PAdES Signature Using a Server Key​

After the file upload (which is crudely implemented for demonstration purposes on upload.php) is done, the control flow is performed by the following files:

Batch of PAdES Signatures​

Open/Validate an Existing PAdES Signature​

After the file upload (which is crudely implemented for demonstration purposes on upload.php) is done, the control flow is performed by the following files:

Printer-Friendly Version From a PAdES Signature​

Not yet available on this project.

CAdES Signature With File Already on Server​

After choosing one of the available server files (which is crudely implemented for demonstration purposes on index.php and action.php), the control flow is performed by the following files:

CAdES Signature With File Uploaded by User​

After the file upload (which is crudely implemented for demonstration purposes on upload.php) is done, the control flow is performed by the following files:

CAdES Co-Signature​

After choosing one of the available already-signed server files (which is crudely implemented for demonstration purposes on index.php and action.php), the control flow is performed by the following files:

CAdES Signature Using a Server Key​

After the file upload (which is crudely implemented for demonstration purposes on upload.php) is done, the control flow is performed by the following files:

Batch of CAdES Signatures​

Not yet available on this project.

Open/Validate an Existing CAdES Signature​

After the file upload (which is crudely implemented for demonstration purposes on upload.php) is done, the control flow is performed by the following files:

Printer-Friendly Version From a CAdES Signature​

Not yet available on this project.

Signature Package From a CAdES Signature​

Not yet available on this project.

XML Signature of The Entire Document​

Not yet available on this project.

XML Signature of a Brazillian NFe Document​

XML Signature of a COD Document​

Not yet available on this project.

Open/Validate Signatures on an Existing XML Document​

Not yet available on this project.