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. [HTTP &amp; Networking](/categories/http)
4. /
5. coufal/laravel-http-cronjob

ActiveLibrary[HTTP &amp; Networking](/categories/http)

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 3w 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

28

—

LowBetter than 52% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

655d 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

76518.2M120](/packages/laravel-mcp)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5452.7k](/packages/hasinhayder-tyro-dashboard)[laravel/surveyor

Static analysis tool for Laravel applications.

8690.3k12](/packages/laravel-surveyor)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k16](/packages/fleetbase-core-api)

PHPackages © 2026

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