Using PKI Express on PHP
This article describes how to use PKI Express on PHP
Sample project
The sample project shows the usage of PKI Express together with the Web PKI browser component on a PHP 5.5+ project (including 7.x). It is hosted on GitHub:
https://github.com/LacunaSoftware/PkiExpressSamples/tree/master/PHP
Note
If you are using a previous version of PHP, please contact us.
Running the project
- Install PKI Express
- Download the project or clone the repository
- In a command prompt, navigate to the folder
PHP
and run the commandcomposer install
to download the dependencies (if you don't have Composer installed, get it here) - Setup a website on your local HTTP server pointing to the
PHP
folder - Open the index.php file on the browser on the corresponding URL (depending on the previous step)
Composer package
In order to use PKI Express on PHP you must include the composer package lacuna/pki-express
To add it to your project, add the line below to your composer.json
file:
{
"require": {
"lacuna/pki-express": "^1.5.1"
}
}
After that, do a composer install
to download the package and its dependencies (if you don't have Composer installed, get it here).
The package is open-source, hosted on GitHub. Feel free to fork it if you need to make any customizations, and even submit an pull request.