Placeholder for an overview of the OpenSSL API
Some languages comes with openssl wrapper to provide openssl acces within native. Whole Openssl library API is in 'C' ie you need to compile with C headers and link with libraries.
openssl access is natively provided by php by explicitly compiling php with openssl. http://php.net/manual/en/book.openssl.php