2017 © Pedro Peláez
 

library laravel-logicbox

Library that let you connect your laravel application to Logicbox's API with ease

image

dhawton/laravel-logicbox

Library that let you connect your laravel application to Logicbox's API with ease

  • Monday, October 2, 2017
  • by dhawton
  • Repository
  • 1 Watchers
  • 1 Stars
  • 46 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Dhawton/Laravel-lb

This library let your laravel application talk with Logicboxes API with ease., (*1)

How to install

  1. Run composer require pangpondpon/laravel-logicbox to include this library to your project
  2. Add Dhawton\LaravelLb\LaravelLbServiceProvider::class into your providers array in config/app.php (Not necessary for Laravel 5.5+)
  3. Run php artisan vendor:publish --publisher='Dhawton\LaravelLb\LaravelLbServiceProvider' to publish the config file
  4. 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, (*2)

<?php

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;
    }
}

See more example in /example folder., (*3)

The Versions

02/10 2017

dev-master

9999999-dev http://www.danielhawton.com

Library that let you connect your laravel application to Logicbox's API with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Hawton

01/10 2017

v0.1.5

0.1.5.0 http://www.danielhawton.com

Library that let you connect your laravel application to Logicbox's API with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Hawton

23/09 2017

v0.1.4.1

0.1.4.1 http://www.danielhawton.com

Library that let you connect your laravel application to Logicbox's API with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Hawton

23/09 2017

v0.1.4

0.1.4.0 http://www.danielhawton.com

Library that let you connect your laravel application to Logicbox's API with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Hawton

23/09 2017

v0.1.3

0.1.3.0 http://www.danielhawton.com

Library that let you connect your laravel application to Logicbox's API with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Hawton

19/09 2017

v0.1.2

0.1.2.0 http://www.danielhawton.com

Library that let you connect your laravel application to Logicbox's API with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Hawton

26/05 2017

v0.1.1

0.1.1.0 http://www.danielhawton.com

Library that let you connect your laravel application to Logicbox's API with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Hawton

22/05 2017

v0.1.0

0.1.0.0 http://www.danielhawton.com

Library that let you connect your laravel application to Logicboxes with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Hawton