承接 bencevans/vmcphp 相关项目开发

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

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

bencevans/vmcphp

Composer 安装命令:

composer require bencevans/vmcphp

包简介

Cloudfoundry Talking in PHP

README 文档

README

##VMCPHP - VMC Library in PHP

VMCPHP is built to replicate the VMC Library as closely as possible.

###Example - Printing HTML List of Apps

Here is an example implementation of VMCPHP that connects to a VCAP (CloudFoundry) Server with credentials and lists all the apps running for that user.

<?php
require_once('VMCPHP.php');

$VMC = new VMCPHP;
$VMC->target = 'http://api.mycloudfoundryaddress.co.uk';
$VMC->login('my@email.co.uk', 'mypassword');
?>

<ul>
	<?php foreach($VMC->apps() as $app) {
		echo '<li>' . $app['name'] . '</li>';
	} ?>
</ul>

When using the correct credentials and address for your VCAP (CloudFoundry) Server will give you something like…

  • dashboard
  • apimashup
  • wordpressexample
  • thebuggenie
###Need More Help? At the moment there is no documentation as such for the class. There will be some to follow at some point depending on demand. For now if you need additional help other than browsing through the code then Message me!

###Wanting To Help? This Project has been open-sourced primarily for the use of others without having to work someone else has done. If you find a bug, by all means report it but if you can fix it, your doing myself and others a favour.

Once you've written the code just submit it as a pull request on the Develop Branch and I'll try to review as soon as I can.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-04-08