pangpondpon / laravel-lb
There is no license information available for the latest version (0.9.9.30) of this package.
Library that let you connect your laravel application to Logicboxes with ease
0.9.9.30
2023-08-04 02:30 UTC
Requires
- nesbot/carbon: ^1.21
- vlucas/phpdotenv: ^2.3
Requires (Dev)
- phpunit/phpunit: 5.5.*
- dev-master
- 0.9.9.30
- 0.9.9.29
- 0.9.9.28
- 0.9.9.27
- 0.9.9.26
- 0.9.9.25
- 0.9.9.24
- 0.9.9.23
- 0.9.9.22
- 0.9.9.21
- 0.9.9.20
- 0.9.9.19
- 0.9.9.18
- 0.9.9.17
- 0.9.9.16
- 0.9.9.15
- 0.9.9.14
- 0.9.9.13
- 0.9.9.12
- 0.9.9.11
- 0.9.9.10
- 0.9.9.9
- 0.9.9.8
- 0.9.9.7
- 0.9.9.6
- 0.9.9.5
- 0.9.9.4
- 0.9.9.3
- 0.9.9.2
- 0.9.9.1
- 0.9.9
- 0.9.8
- 0.9.7
- 0.9.6
- 0.9.5
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.9
- 0.8.8
- 0.8.7
- 0.8.6
- 0.8.5
- 0.8.4
- 0.8.3
- 0.8.2
- 0.8.1
- 0.7.9.1
- 0.7.9
- 0.7.5
- 0.7.4
- 0.7.3
- 0.7.2
- 0.6.7
- 0.6.6
- 0.6.5
This package is auto-updated.
Last update: 2024-11-04 04:58:35 UTC
README
This library let your laravel application talk with Logicboxes API with ease.
How to install
- Run
composer require pangpondpon/laravel-lb
to include this library to your project - Add
LaravelLb\LaravelLbServiceProvider::class
into your providers array in config/app.php - Run
php artisan vendor:publish
to publish the config file - Put your credential in config/logicboxes.php like so
<?php return [ "test_mode" => env('LB_TEST_MODE', true), "auth_userid" => env('LB_AUTH_USERID', 'YOUR_USER_ID'), "api_key" => env('LB_API_KEY', 'YOUR_API_KEY'), ];
How to use in Laravel Controller
Use case - Buy an ssl from comodo
<?php namespace App\Http\Controllers; use App\Http\Requests; use Illuminate\Http\Request; use 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.