1. Go to this page and download the library: Download dhawton/laravel-logicbox 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/ */
namespace App\Http\Controllers;
use App\Http\Requests;
use Illuminate\Http\Request;
use Dhawton\LaravelLb\LogicBoxesComodo;
class ComodoCertController extends Controller
{
public $comodo;
public function __construct()
{
$this->comodo = new LogicBoxesComodo();
}
// Buy the ssl from comodo, see LogicBoxesComodo class for api call info
public function buy()
{
// Order buy use method add from LogicBoxesComodo class
$response = $this->comodo->add([
"domain-name" => "ssldemosite.com",
"months" => 12,
"customer-id" => "52213365",
"plan-id" => LogicBoxesComodo::POSITIVE_SSL, // Check more options in LogicBoxesComodo
"invoice-option" => LogicBoxesComodo::NO_INVOICE // Check more options in LogicBoxesComodo
])->toArray();
return $response;
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.