PHP code example of kdyby / curl-ca-bundle

1. Go to this page and download the library: Download kdyby/curl-ca-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kdyby / curl-ca-bundle example snippets


$curl = curl_init("https://www.kdyby.org/");
\Kdyby\CurlCaBundle\CertificateHelper::setCurlCaInfo($curl);
$result = curl_exec($curl);

$curl = curl_init("https://www.kdyby.org/");
curl_setopt($curl, CURLOPT_CAINFO, \Kdyby\CurlCaBundle\CertificateHelper::getCaInfoFile());
$result = curl_exec($curl);