Getting Started

iPinga is most easily installed and kept up to date by using Composer (Dependency Manager for PHP). You can, indeed, simply download the source code and install it yourself, but why? Installing it via Composer will allow you to keep iPinga up to date with ease and it’s what all the cool kids are doing these days. 🙂 The following steps detail how to setup iPinga with your own application. It is highly recommended that you download the iPinga Starter App to see how it all comes together. This is handy if you learn better by looking at how someone else has done it.

System Requirements

  • Composer
  • PHP 5.3 or higher
  • mcrypt extension

Create a composer.json file in your project’s root folder and add the following lines:

Tell composer to install the library:

Add this line to your application’s index.php file:

Instantiate the iPinga application:

Build a controller file (controllers/helloworld.controller.php) to handle the request:

Define a route to call this controller/method:

Run the iPinga application: