Library that let you connect your laravel application to Logicbox's API with ease. Original author by Dhawton
lokat/laravel-logicbox is a Laravel package for library that let you connect your laravel application to logicbox's api with ease. original author by dhawton.
It currently has 0 GitHub stars and 26 downloads on Packagist (latest version v3.0.1).
Install it with composer require lokat/laravel-logicbox.
Discover more Laravel packages by lokat
or browse all Laravel packages to compare alternatives.
Last updated
This library let your laravel application talk with Logicboxes API with ease.
composer require lokat/laravel-logicbox to include this library to your projectLokat\LaravelLb\LaravelLbServiceProvider::class into your providers array in config/app.php (Not necessary for Laravel 5.5+)php artisan vendor:publish --publisher='Lokat\LaravelLb\LaravelLbServiceProvider' to publish the config file<?php
return [
'test_mode' => env('LB_TEST_MODE', true),
'credentials' => [
"auth_userid" => env('LB_AUTH_USERID', 'YOUR_USER_ID'),
"api_key" => env('LB_API_KEY', 'YOUR_API_KEY'),
],
'throw_exception' => true
];
Use case - Buy an ssl from comodo
<?php
namespace App\Http\Controllers;
use App\Http\Requests;
use Illuminate\Http\Request;
use Lokat\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;
}
}
See more example in /example folder.