Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

PKI Suite samples for PHP

This folder contains PHP sample projects demonstrating the usage of Lacuna Software's PKI Suite.

For other languages, please visit the repository root.

Default sample (PHP Plain)

A sample using PHP plain to build a web application can be found on folder plain.

Steps to execute the sample:

  1. Download the project or clone the repository

  2. Install dependencies: composer install

  3. Run application: composer start

  4. Access the URL http://localhost:8000

This sample requires PHP 5.5+. If you're doing another version of PHP, please visit our legacy samples for PHP 5.3 and 5.4 or for PHP 5.2.

REST PKI's client lib

The sample projects depend on Rest PKI client lib for PHP library, which in turn requires PHP 5.5 or greater.

This dependency is specified in the file composer.json:

{
	"require": {
		"lacuna/restpki-client": "^2.3.1"
	}
}

PKI Express's helper library

The sample projects also depend on PKI Express's library for PHP library, which in turn requires PHP 5.5 or greater.

{
	"require": {
		"lacuna/pki-express": "^1.7.0"
	}
}

Activating PKI Express

After installing PKI Express, is necessary to activate it. On Linux, execute the following command with root permissions:

$ sudo pkie activate LacunaPkiLicense.config

On Windows, run the PKI Express Configuration Manager (file pkiemgr.exe on the installation folder ex.: C:\Program Files\Lacuna Software\PKI Express) and follow the instructions to activate PKI Express.

See also