Download the PHP package 20steps/commons-uptime-robot-bundle without Composer
On this page you can find all versions of the php package 20steps/commons-uptime-robot-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package commons-uptime-robot-bundle
20steps/uptime-robot-bundle (twentystepsCommonsUptimeRobotBundle)
About
The 20steps UptimeRobot Bundle contains a service-oriented client for UptimeRobot API v2.0.
Use the bundle in scenarios where you want to automatically create monitors, alert contacts etc. at UptimeRobot.com for your given application or services or as part of your deployment process to automatically manage maintenance windows.
The Bundle is licensed under the LGPL license version 3.0.
Installation
Prerequisites:
- Install Composer, the dependency manager used by modern PHP applications.
- Setup your Symfony 3 based application
- Use PHP >= 7.0 as a runtime
-
Add the bundle to your composer.json and download a matching version by calling
- Configure the API key of your account at UptimeRobot.com in your config.yml
Usage
The following code shows how to create a monitor with the client.
The bundle provides some useful commands below the twentysteps:commons:uptime-robot namespace.
Eg. to list all monitors and their stati simply call
Hints
-
In case your application uses multiple accounts at UptimeRobot you can dynamically change the api key as follows
- Cp. section "parameters" of UptimeRobot API Documentation for an explanation of parameters.
- The UptimeRobot API has been enhanced by some extra utility methods such as api->monitor()->findOneByUrl(..), api->monitor->createOrUpdate(..), api->monitor->pauseByUrl(), api->monitor->resumeByUrl() etc.
Authors
- Helmut Hoffer von Ankershoffen [email protected]
Sponsored by
All versions of commons-uptime-robot-bundle with dependencies
symfony/framework-bundle Version ~3.0
php-http/guzzle6-adapter Version ^1.1
20steps/commons-ensure-bundle Version ^1.0
jane/openapi-runtime Version ^2.0