hawkflow/hawkflow-php

v1.0.4 2023-03-08 17:11 UTC

This package is auto-updated.

Last update: 2025-07-08 22:35:20 UTC


README

HawkFLow.ai

HawkFlow.ai

Monitoring for anyone that writes code

  1. Install: composer update
  2. Usage:
<?php

require 'vendor/autoload.php';

use HawkFlow\HawkFlow\HawkFlow;

// Authenticate with your API key
$hf = new HawkFlow("YOUR_API_KEY");

// Start timing your code - pass through process (required) and meta (optional) parameters
echo "Sending timing start data to hawkflow\n";
$hf->start("your_process_name", "your_meta_data");

// Do some work
echo "Sleeping for 5 seconds...\n";
sleep(5);

// End timing this piece of code - process (required) and meta (optional) parameters should match the start
echo "Sending timing end data to hawkflow\n";
$hf->end("your_process_name", "your_meta_data");

More examples: HawkFlow.ai PHP examples

Read the docs: HawkFlow.ai documentation

What is HawkFlow.ai?

HawkFlow.ai is a new monitoring platform that makes it easier than ever to make monitoring part of your development process. Whether you are an Engineer, a Data Scientist, an Analyst, or anyone else that writes code, HawkFlow.ai helps you and your team take ownership of monitoring.

Testing this package

  1. Install dependencies: composer update --dev
  2. Run tests: ./vendor/bin/phpunit --verbose tests