PHPackages                             digitalclaim/azure-scheduler-laravel - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. digitalclaim/azure-scheduler-laravel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

digitalclaim/azure-scheduler-laravel
====================================

Laravel scheduler triggered by Azure Scheduled Functions.

1.x-dev(2y ago)0119[2 PRs](https://github.com/digitalclaim/azure-scheduler-laravel/pulls)MITPHPPHP ^8.1

Since Feb 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/digitalclaim/azure-scheduler-laravel)[ Packagist](https://packagist.org/packages/digitalclaim/azure-scheduler-laravel)[ Docs](https://github.com/digitalclaim/azure-scheduler-laravel)[ GitHub Sponsors](https://github.com/digitalclaim)[ RSS](/packages/digitalclaim-azure-scheduler-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (12)Versions (5)Used By (0)

This is my package azure-scheduler-laravel
==========================================

[](#this-is-my-package-azure-scheduler-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/30de98d4ad96da154ae899e84ee53fb4f4e20243345fa071806db44cc99fdf14/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6469676974616c636c61696d2f617a7572652d7363686564756c65722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digitalclaim/azure-scheduler-laravel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/5a247f46f949c5712e6787feffc04bcc15e3d69ee5896472675d00203c5d454f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6469676974616c636c61696d2f617a7572652d7363686564756c65722d6c61726176656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/digitalclaim/azure-scheduler-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/8078a631905111c3f028a90914330995e4dad14bb6e7ae6f4c36894c60ceb3fb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6469676974616c636c61696d2f617a7572652d7363686564756c65722d6c61726176656c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/digitalclaim/azure-scheduler-laravel/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/66650d7bd9dc771c90f8119050d0e51a26474fb6130e85ccac5d08419833b9ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6469676974616c636c61696d2f617a7572652d7363686564756c65722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digitalclaim/azure-scheduler-laravel)

Laravel scheduler triggered by Azure Scheduled Functions. Instead of a CronJob the scheduled cloud function will request a callback url which triggers the Laravel scheduler.

This package is inspired by [stackkit/laravel-google-cloud-scheduler](https://github.com/stackkit/laravel-google-cloud-scheduler)

Warning: The callback route is rate limited to only one request per limit. Laravel sub-minute tasks are not supported.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require digitalclaim/azure-scheduler-laravel
```

You can publish the config file with:

```
php artisan vendor:publish --tag="azure-scheduler-laravel-config"
```

This is the contents of the published config file:

```
return [
];
```

Usage
-----

[](#usage)

1. \[Optional\] Whitelist route for maintenance mode. This step is optional, but highly recommended. To allow jobs to keep running if the application is down (`php artisan down`) you must modify the `PreventRequestsDuringMaintenance` middleware:

```
