定制 pangpondpon/laravel-lb 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pangpondpon/laravel-lb

Composer 安装命令:

composer require pangpondpon/laravel-lb

包简介

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

README 文档

README

Build Status

This library let your laravel application talk with Logicboxes API with ease.

How to install

  1. Run composer require pangpondpon/laravel-lb to include this library to your project
  2. Add LaravelLb\LaravelLbServiceProvider::class into your providers array in config/app.php
  3. Run php artisan vendor:publish 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

<?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.

统计信息

  • 总下载量: 289
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 4
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-08-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固