PHPackages                             coufal/laravel-http-cronjob - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. coufal/laravel-http-cronjob

ActiveLibrary

coufal/laravel-http-cronjob
===========================

A Laravel package to trigger the scheduler via HTTP endpoint.

v1.3.0(1y ago)1160MITPHPPHP ^8.0

Since Apr 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/coufal/laravel-http-cronjob)[ Packagist](https://packagist.org/packages/coufal/laravel-http-cronjob)[ RSS](/packages/coufal-laravel-http-cronjob/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (7)Used By (0)

Laravel HTTP Cronjob
====================

[](#laravel-http-cronjob)

Description
-----------

[](#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
------------

[](#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
-----

[](#usage)

### POST Request

[](#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

[](#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
-----------------------

[](#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
------------

[](#contributing)

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

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~30 days

Recently: every ~38 days

Total

6

Last Release

609d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2dcd34125baa85aa35e6a86278ce22c1c9c2046a464ea95d744899b4de48f25c?d=identicon)[optimalspieler](/maintainers/optimalspieler)

---

Top Contributors

[![coufal](https://avatars.githubusercontent.com/u/8205075?v=4)](https://github.com/coufal "coufal (23 commits)")

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/coufal-laravel-http-cronjob/health.svg)

```
[![Health](https://phpackages.com/badges/coufal-laravel-http-cronjob/health.svg)](https://phpackages.com/packages/coufal-laravel-http-cronjob)
```

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k124.3M624](/packages/barryvdh-laravel-debugbar)[genealabs/laravel-caffeine

Keeping Your Laravel Forms Awake

9382.1M10](/packages/genealabs-laravel-caffeine)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
