This folder contains PHP sample projects demonstrating the usage of Lacuna Software's PKI Suite.
For other languages, please visit the repository root.
A sample using PHP plain to build a web application can be found on folder plain.
Steps to execute the sample:
-
Download the project or clone the repository
-
Install dependencies:
composer install -
Run application:
composer start -
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.
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"
}
}
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"
}
}
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.