lesaff/laravel-serverpilot 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

lesaff/laravel-serverpilot

Composer 安装命令:

composer require lesaff/laravel-serverpilot

包简介

README 文档

README

Version: 1.0.0

This is a Laravel 5.x wrapper for Dave Rogers' excellent ServerPilot PHP API. It comes with Service Container binding and Facade alias.

Installation

  1. Run composer require lesaff/laravel-serverpilot

  2. Grab ServerPilot's API ID and Key from your SP's admin panel

  3. Set SERVERPILOT_API_ID and SERVERPILOT_API_KEY in your .env file

  4. Edit app/config/app.php,

    add the following to your providers' array

    Lesaff\LaravelServerPilot\ServerPilotServiceProvider::class,
    

    add the following to your class aliases array

    'SP' => Lesaff\LaravelServerPilot\Facades\ServerPilot::class,
    

Usage

As a Facade

$servers = \SP::server_list();

As a Dependency injection

Route::get('/servers', function (\Lesaff\LaravelServerPilot $sp) {
	$servers = $sp->server_list();
});

For full PHP API usage, please refer to https://github.com/daverogers/serverpilot-php

by Rudy Affandi (2017)
https://githubb.com/lesaff/laravel-serverpilot

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-10-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固