connectholland / uptime-robot-bundle
Symfony 4/5 项目使用的 Uptime Robot 插件
1.1.1
2020-11-05 09:18 UTC
Requires
- php: ^7.3
- jane-php/open-api-runtime: ^6.2
- php-http/httplug-bundle: ^1.18
- symfony/config: ^4.3 || ^5.0
- symfony/dependency-injection: ^4.3 || ^5.0
- symfony/framework-bundle: ^4.3 || ^5.0
- symfony/http-kernel: ^4.4.13 || ^5.0
- symfony/translation-contracts: ^2.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.15
- icanhazstring/composer-unused: ^0.7.5
- jane-php/open-api-2: ^6.0
- maglnet/composer-require-checker: ^2.0
- phpstan/phpstan: ^0.11.16
- phpunit/phpunit: ^8.3
- sensiolabs/security-checker: ^6.0
- symfony/var-dumper: ^4.3 || ^5.0
This package is auto-updated.
Last update: 2023-10-05 17:14:15 UTC
README
Symfony 4/5 项目使用的 UptimeRobot 插件
安装
composer require connectholland/uptime-robot-bundle
环境
设置环境变量以连接到 UptimeRobot API。
UPTIMEROBOT_API_KEY=the-api-key
使用方法
自动注入客户端,例如。
<?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(); } }