New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

coufal/laravel-http-cronjob

A Laravel package to trigger the scheduler via HTTP endpoint.
1,071 1

Larablocks Analysis

coufal/laravel-http-cronjob works with Laravel 8 to 13 (latest release v1.3.1, Jul 11, 2026).

Promising: maintained and up to date, meets 2 of 4 checks; not yet widely used.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Jul 11, 2026)
  • 817 downloads a month (needs 10,000)
  • 1 GitHub star (needs 100)

State

Maintained
  • Last stable release: Jul 11, 2026.
  • 1 release in the last 12 months.
  • First released: Apr 11, 2024.
  • Monthly downloads: 817.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 5, 2026.

Install
composer require coufal/laravel-http-cronjob
Latest Version:v1.3.1
PHP:^8.0
Laravel:8 – 13
License:MIT
Last Updated:Jul 11, 2026
Links: GitHub  ·  Packagist
Maintainer: optimalspieler

Laravel HTTP Cronjob

Description

This library allows a Laravel application to initiate scheduled tasks through an HTTP request. It lets you trigger Laravel's scheduler from external sources, such as web-based cron job services offered by hosting providers like IONOS or All-Inkl.com. Security for accessing this feature is maintained using a Bearer token, which can be configured using an environment variable.

Installation

To install the package, run the following command in your Laravel project:

composer require coufal/laravel-http-cronjob
# you may optionally publish the config file to config/scheduled-tasks.php by running
php artisan vendor:publish --provider="Coufal\LaravelHttpCronjob\Providers\HttpCronjobServiceProvider"

Configure the Bearer token and a custom endpoint in your .env file. A random token may be generated using: pwgen --secure 256.

HTTP_CRONJOB_TOKEN=your-secure-token-here
HTTP_CRONJOB_ENDPOINT=/custom/scheduler/endpoint
  • HTTP_CRONJOB_TOKEN is used for authenticating the HTTP requests to the scheduled tasks route.
  • HTTP_CRONJOB_ENDPOINT allows you to define a custom route for triggering scheduled tasks. If not set, the default route /scheduler/cronjob is used.

Usage

POST Request

Once configured, you can trigger the Laravel scheduler by making a POST request to the published route (/scheduler/cronjob by default) with the correct Bearer token in the Authorization header:

Authorization: Bearer your-secure-token-here

GET Request

Alternatively, you can trigger the Laravel scheduler by making a GET request to the published route (/scheduler/cronjob by default)

/custom/scheduler/endpoint?token=your-secure-token-here

This can be set up as a web-based cron job pointing to this route to trigger your scheduled tasks remotely.

Security Considerations

Ensure that your Bearer token is kept secure and is only known to the services that require access to trigger the scheduler.

Currently, there is no protection against brute force attacks against the API endpoint, apart from using a long token.

Contributing

Contributions to the package are welcome! Please feel free to submit pull requests or open issues to suggest improvements or report bugs.

License

This package is open-sourced software licensed under the MIT license.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released PHP Laravel License
v1.3.1 ^8.0 ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
v1.3.0 ^8.0 ^8.0|^9.0|^10.0|^11.0 MIT
v1.2.0 ^8.0 ^8.0|^9.0|^10.0|^11.0 MIT
v1.1.2 ^8.0 ^8.0|^9.0|^10.0|^11.0 MIT
v1.1.1 ^8.0 ^8.0|^9.0|^10.0|^11.0 MIT