承接 haswalt/rancher-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

haswalt/rancher-php

Composer 安装命令:

composer require haswalt/rancher-php

包简介

RancherPHP is PHP client library for interacting with the Rancher API

README 文档

README

RancherPHP is a PHP client for interacting with the Rancher API. Rancher's API provides a traversable tree or resources and RancherPHP exposes these in a simple interface.

$client = new Rancher\Client('http://localhost:9000/v1', 'key', 'secret');
$projects = $client->getProjects();

$services = $projects->first()->getServices();

Installing RancherPHP

The recommended way to install RancherPHP is through Composer.

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, run the Composer command to install the latest stable version of RancherPHP:

composer.phar require haswalt/rancher-php

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';

You can then later update RancherPHP using composer:

composer.phar update

TODO

  • Implement more resource types
  • Add tests
  • Implement complex actions

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-28