connectholland/uptime-robot-bundle

Uptime Robot bundle for Symfony 4/5 projects

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Package info

github.com/ConnectHolland/uptime-robot-bundle

Issues

Type:symfony-bundle

pkg:composer/connectholland/uptime-robot-bundle

Statistics

Installs: 939

Dependents: 0

Suggesters: 0

Stars: 1

1.1.1 2020-11-05 09:18 UTC

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 8e858984fcb051f39d0301c31bf0eea163477ac8

  • Reyo Stallenberg <reyo.woop@connectholland.nl>

This package is auto-updated.

Last update: 2023-10-05 17:14:15 UTC


README

👁 Scrutinizer Code Quality
👁 Code Coverage
👁 Build Status

UptimeRobot bundle for Symfony 4/5 projects

Installation

composer require connectholland/uptime-robot-bundle

Environment

Set the environment variables to be able to connect to the UptimeRobot API.

UPTIMEROBOT_API_KEY=the-api-key

Usage

Autowire the client, e.g.:

<?php

declare(strict_types=1);

namespace App;

use ConnectHolland\UptimeRobotBundle\Api\Client;

class SomeService
{
 private Client $client;

 public function __construct(Client $client)
 {
 $this->client = $client;
 }
 
 public function someMethod()
 {
 $this->client->getMonitors();
 }
}