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
###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
其他信息
- 授权协议: MIT
- 更新时间: 2012-04-08