Download the PHP package pogo/scheduler without Composer

On this page you can find all versions of the php package pogo/scheduler. 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 scheduler

Pogo Scheduler

A small Caddy / FrankenPHP module that acts as an embedded cron trigger for constrained or single-binary PHP deployments.

It runs a lightweight Go ticker and executes a configurable command, such as php artisan schedule:run, every minute aligned to the wall clock.

Pogo Scheduler is intentionally not a distributed scheduler. In Kubernetes production environments, prefer native CronJob resources.

Production status

Pogo Scheduler is a small experimental module for constrained, single-binary, and single-node PHP deployments. Its API may change.

It is not a distributed scheduler. In horizontally scaled deployments, run it as a singleton service or rely on application-level shared locks. In Kubernetes production environments, prefer native CronJob resources.

Installation

1. Docker

Build a FrankenPHP binary that includes Pogo Scheduler with xcaddy. See the official FrankenPHP Docker documentation for the base image details.

Example Dockerfile from this repository root:

Then copy your app and Caddyfile into the runner image as usual.

2. Configure Caddyfile

Add a pogo_scheduler block to your Caddyfile. Example for Laravel:

3. Run Octane

Start the server using the configured Caddyfile:


How It Works

  1. The Ticker (Go): A goroutine wakes up every 60 seconds, aligned to the start of each minute (:00).
  2. The Command: At each tick, the module runs the configured command in a subprocess (e.g. php artisan schedule:run).
  3. Timeout: Each run is bounded by the configured timeout; the process is killed if it exceeds it.
  4. Overlap Mode: By default, every minute tick starts a command. Use overlap skip to drop a tick while the previous command is still running.
  5. Graceful Shutdown: On Caddy shutdown or reload, no new commands are started. The active command can finish within shutdown_grace; after that, it is cancelled.

When To Use It

Good fits:

Poor fits:

Overlap Behavior

The default starts a command on every minute boundary:

This matches Laravel's schedule:run behavior. Sub-minute tasks such as everySecond() keep schedule:run alive for most of the minute, and a small overrun at :00 should not skip the whole next minute.

You can opt into a local overlap guard:

Use skip only when the command itself must never overlap. If one run is still active at the next minute boundary, the new run is skipped and a warning is logged.


All versions of scheduler with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
laravel/framework Version ^12.44.0
laravel/octane Version ^2.13.3
friendsofphp/php-cs-fixer Version ^3.92.3
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 pogo/scheduler contains the following files

Loading the files please wait ...