Download the PHP package bml/sentry-symfony-cron-monitor without Composer

On this page you can find all versions of the php package bml/sentry-symfony-cron-monitor. 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 sentry-symfony-cron-monitor

Sentry Cron Monitoring Symfony Bundle

About

This extension allows to configure sentry cron monitoring with pretty much any scheduled jobs provider.

Setup

  1. Make sure you setup base sentry-symfony extension https://github.com/getsentry/sentry-symfony
  2. composer require bml/sentry-symfony-cron-monitor
  3. Enable SentryCronMonitorBundle in your bundles.php or Kernel (it may be automatically added by SF flex)

Usage

Add cron monitoring slug and schedule to your command parameters. ref.

 --cron-monitor-slug=CRON-MONITOR-SLUG                  if command should be monitored then pass cron monitor slug
 --cron-monitor-schedule=CRON-MONITOR-SCHEDULE          if command should be monitored then pass cron monitor schedule
 --cron-monitor-max-time=CRON-MONITOR-MAX-TIME          if command should be monitored then pass cron monitor max execution time
 --cron-monitor-check-margin=CRON-MONITOR-CHECK-MARGIN  if command should be monitored then pass cron monitor check margin

example usage in crontab

Optionally you can also set max run time and check margin (see https://docs.sentry.io/platforms/php/crons/for ref.)

Crontab helper command

The bml:sentry-symfony-cron-monitor:add-schedule-argument-to-crontab command will take crontab file path and will add the --cron-monitor-schedule=THE_SCHEDULE to lines containing --cron-monitor-slug.
This way the crontab file can be more DRY because you don't need to keep the --cron-monitor-schedule=THE_SCHEDULE. Instead it's auto added during deploy/build. Just use this command in your ci/cd.

Development

Setup

Run .docker/bin/setup-dev.sh {PHP_VERSION}
eg. .docker/bin/setup-dev.sh 8.1
Default php version is 7.2 .docker/bin/setup-dev.sh

Tests

Run .docker/bin/run-tests.sh
For xdebug experience .docker/bin/run-tests-xdebug.sh
To run tests against specific php version use

php-cs-fixer

Run .docker/bin/run-php-cs-fixer.sh
Beware this command internally runs .docker/bin/setup-dev.sh 8.1 (changes container php-version)


All versions of sentry-symfony-cron-monitor with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2||^8.0
symfony/http-client Version ^5.4
nyholm/psr7 Version ^1.8
symfony/dependency-injection Version ^4.4.20||^5.0.11||^6.0
symfony/http-kernel Version ^4.4.20||^5.0.11||^6.0
sentry/sentry-symfony Version 4.*
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 bml/sentry-symfony-cron-monitor contains the following files

Loading the files please wait ....