PHPackages                             posixpascal/spark-alarm - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. posixpascal/spark-alarm

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

posixpascal/spark-alarm
=======================

Easy server monitoring library with custom alarms and notifications.

1.0(9y ago)22MITPHPPHP &gt;=7.1.0

Since Apr 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/posixpascal/spark-alarm)[ Packagist](https://packagist.org/packages/posixpascal/spark-alarm)[ RSS](/packages/posixpascal-spark-alarm/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

🌩spark 🚨alarm
=============

[](#spark-alarm)

[![Build Status](https://camo.githubusercontent.com/3340fad1f4ba7c5dfa3146d05510b926473618fc54c0e2911278d313e2c22628/68747470733a2f2f7472617669732d63692e6f72672f706f73697870617363616c2f737061726b2d616c61726d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/posixpascal/spark-alarm)[![Latest Stable Version](https://camo.githubusercontent.com/cf9fecb26364f0a17aa22d3a70f5fec7137689945340b38797dda3540f5d3ff2/68747470733a2f2f706f7365722e707567782e6f72672f706f73697870617363616c2f737061726b2d616c61726d2f762f737461626c65)](https://packagist.org/packages/posixpascal/spark-alarm)[![Total Downloads](https://camo.githubusercontent.com/85ce2c98bd23e546314be893de1215b5910204d6f41660897e3aa4dd74ab9f14/68747470733a2f2f706f7365722e707567782e6f72672f706f73697870617363616c2f737061726b2d616c61726d2f646f776e6c6f616473)](https://packagist.org/packages/posixpascal/spark-alarm)[![License](https://camo.githubusercontent.com/632abd03956175d2a5336afed9c1d9642916fb980842aee6babc4fc452efb660/68747470733a2f2f706f7365722e707567782e6f72672f706f73697870617363616c2f737061726b2d616c61726d2f6c6963656e7365)](https://packagist.org/packages/posixpascal/spark-alarm)[![Code Climate](https://camo.githubusercontent.com/f90a3de4f6a486d6a3d6ae5f59e9a43693d970fd91d4e32c0f9e733d3ca451d5/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f706f73697870617363616c2f737061726b2d616c61726d2f6261646765732f6770612e737667)](https://codeclimate.com/github/posixpascal/spark-alarm)

Spark is a super simple monitoring tool with a very flexible architecture. You can create customized alarms which trigger on your behalf and send custom notifications. The implementation detail is minimalistic on purpose so that spark adapts to your platform.

It's designed to work as a CLI application as well as a regular shell script so you can add a cronjob which runs spark whenever you desire.

It's also compatible by the "*cronjob tool*" many cheap VPS hoster offer where you can only call remote PHP scripts by URL.

If you need custom server monitoring, custom notification and/or you're bound to a cheap VPS hoster – Spark is for you.

Installation
------------

[](#installation)

Install using composer:

```
composer require "posixpascal/spark-alarm"
```

Usage
-----

[](#usage)

Spark follows the concept of custom `Alarm` classes which consist of a simple `test()` method and optional error/success handlers. Once you have your own alarm class you can add it to the *Spark Instance* and run it.

```
