Download the PHP package phil/broken-flow-alerts without Composer

On this page you can find all versions of the php package phil/broken-flow-alerts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package broken-flow-alerts

phil/broken-flow-alerts

A warning on the day a path your visitors finish stops being finished.

phil/broken-flow-alerts watches the flows of a site — a purchase, a registration, a contact form, any path whose last step the application already counts — and warns when one is completed far less often than its rhythm leads to expect. A payment provider that changed its answer, a button that no longer submits, a redirect that loops: the visitors keep coming, and the completions stop. The library notices from the daily counts, compares the last days with the weeks before, weekday by weekday, and sends an alert on the day the flow breaks, then another on the day it completes again.

It is passive: it reads counts the application keeps anyway, such as the goals of an analytics tool, and sends no request to the site, synthetic or otherwise. Nothing about a visitor reaches it: a count per flow and per day is all it reads.

The decision is a Poisson count. The baseline days set the expected completions of each day of the window; for each stretch that ends on the last whole day, the library asks how likely so few completions would be in a working flow, and calls the flow broken when the answer is under the significance, 0.001 by default. A busy flow is broken after a single silent day, a flow completed twice a day after about four, and a flow whose usual day is close to zero is never broken: a silent day is ordinary there.

It is a plain PHP library: its only requirement is psr/clock. NotifierAlertSender sends the alerts through Symfony Notifier when symfony/notifier is installed; any other channel is an AlertSender of the application. With phil/analytics-bundle, the goals of the sites are watched from the bundle's configuration.

Status

Area State
Flows (Flow), their history (CompletionHistory) Implemented and tested
The rule (BrokenFlowRule, FlowStatus): baseline, window, weekday rhythm, Poisson tail with a bounded cost Implemented and tested
The watch (BrokenFlowWatch): an alert on the day a flow breaks and on the day it recovers, without a store Implemented and tested
Alerts (FlowAlert, FlowAlertKind) and their sending (AlertSender, NotifierAlertSender) Implemented and tested
Synthetic checks (requests sent to the site) Not part of the library

Documentation

Quick start

$history is the application's CompletionHistory: one count per UTC day for a flow, read from its counters.

Requirements

Contributing

Contributions are welcome on the PHIL monorepo: read the contribution guide and the security policy explains, never in a public issue.

License

MIT, © Philippe Gamache, doing business as Le Gnome Archiviste; a Parler Haut Interagir Librement project. See LICENSE.


All versions of broken-flow-alerts with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
psr/clock Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phil/broken-flow-alerts contains the following files

Loading the files please wait ...