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