Sample code for 30+ languages & platforms
PHP

PKCS11 Examples for Chilkat2 PHP