This is an example PHP and Laravel application used to demonstrate interactions with the Mondo API. It was built for the March 2016 POD Point Academy on the subject of 'Where Are All The Servers?' which was a discussion session about the cloud, APIs and DevOps.
This package makes use of the mondo-php API client and the oauth-mondo provider for the PHP League's oauth2-client. It should be a good starting point for anyone wanting to build a Laravel based Mondo web interface.
If you're a Mondo customer and you'd like to have a look at this app, you can check it out here: http://mondo-app.herokuapp.com/
You can either download the zip or clone the repository using the git command line application, like so:
$ git clone https://github.com/edcs/mondo-app
You then need to install the composer dependancies, like so:
$ composer install
It's recommended that you use something like Vagrant to run this application locally, however you can get away with using PHPs own built in web server, like so:
$ php artisan serve
Homestead is ideal for running Laravel applications locally. If you've not installed it, check out the documentation on the Laravel website and give it a go.
The test suite is built using PHPUnit, the following command will run them:
$ vendor/bin/phpunit